Use postgres 9.3 for dev apis
authorTom Hughes <tom@compton.nu>
Tue, 28 Oct 2014 17:34:48 +0000 (17:34 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 28 Oct 2014 17:34:48 +0000 (17:34 +0000)
cookbooks/dev/recipes/default.rb

index fa2c8081b6472b770931f2abc5e6895098da45d1..45e02ad53aadc09a68f5f9d3668e07a92306bf3f 100644 (file)
@@ -129,7 +129,7 @@ end
 
 if node[:postgresql][:clusters][:"9.1/main"]
   postgresql_user "apis" do
-    cluster "9.1/main"
+    cluster "9.3/main"
   end
 
   node[:dev][:rails].each do |name,details|
@@ -142,12 +142,12 @@ if node[:postgresql][:clusters][:"9.1/main"]
     node.set[:dev][:rails][name][:secret_key_base] = secret_key_base
 
     postgresql_database database_name do
-      cluster "9.1/main"
+      cluster "9.3/main"
       owner "apis"
     end
 
     postgresql_extension "#{database_name}_btree_gist" do
-      cluster "9.1/main"
+      cluster "9.3/main"
       database database_name
       extension "btree_gist"
     end
@@ -159,7 +159,7 @@ if node[:postgresql][:clusters][:"9.1/main"]
       group "apis"
       repository details[:repository]
       revision details[:revision]
-      database_port node[:postgresql][:clusters][:"9.1/main"][:port]
+      database_port node[:postgresql][:clusters][:"9.3/main"][:port]
       database_name database_name
       database_username "apis"
       run_migrations true
@@ -203,7 +203,7 @@ if node[:postgresql][:clusters][:"9.1/main"]
 
       postgresql_database database_name do
         action :drop
-        cluster "9.1/main"
+        cluster "9.3/main"
       end
     end
   end