]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/recipes/default.rb
Add top-level Apache 2.0 license file.
[chef.git] / cookbooks / dev / recipes / default.rb
index fa2c8081b6472b770931f2abc5e6895098da45d1..13a6f96326834c9f6438a2a87f9cd1e62598e8ad 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,8 +203,10 @@ if node[:postgresql][:clusters][:"9.1/main"]
 
       postgresql_database database_name do
         action :drop
-        cluster "9.1/main"
+        cluster "9.3/main"
       end
+
+      node[:dev][:rails][name].delete(:secret_key_base)
     end
   end