Enable the postgresql repository on yevaud
authorTom Hughes <tom@compton.nu>
Wed, 29 Apr 2015 20:36:18 +0000 (21:36 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 29 Apr 2015 20:36:18 +0000 (21:36 +0100)
cookbooks/apt/recipes/default.rb
cookbooks/apt/templates/default/postgresql.list.erb [new file with mode: 0644]
roles/yevaud.rb

index 87f97a11a90e61f10ac6dfb63356617bf85b6aab..050f806f6a0a68cee597e2ba6094854d6932683d 100644 (file)
@@ -96,3 +96,9 @@ apt_source "passenger4" do
   url "https://oss-binaries.phusionpassenger.com/apt/passenger/4"
   key "AC40B2F7"
 end
+
+apt_source "postgresql" do
+  template "postgresql.list.erb"
+  url "http://apt.postgresql.org/pub/repos/apt"
+  key "ACCC4CF8"
+end
diff --git a/cookbooks/apt/templates/default/postgresql.list.erb b/cookbooks/apt/templates/default/postgresql.list.erb
new file mode 100644 (file)
index 0000000..c27441c
--- /dev/null
@@ -0,0 +1,4 @@
+# DO NOT EDIT - This file is being maintained by Chef
+
+deb <%= @url %> <%= node.lsb.codename %>-pgdg main
+deb-src <%= @url %> <%= node.lsb.codename %>-pgdg main
index 362ddb12f52e1a54c8b00b3fbc1049071d99b8b0..b3c296dbc10c8472edd8daa815db0758b623ba0d 100644 (file)
@@ -2,6 +2,9 @@ name "yevaud"
 description "Master role applied to yevaud"
 
 default_attributes(
+  :apt => {
+    :sources => ["postgresql"]
+  },
   :devices => {
     :osdisktune1 => {
       :comment => "Tune os disk",