X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d4c21371069c4229dce7fc4316a1dea6d6e882e9..310c3fa223b5f20f4f8847b4fd8304189585770b:/cookbooks/dev/recipes/default.rb diff --git a/cookbooks/dev/recipes/default.rb b/cookbooks/dev/recipes/default.rb index 1888e9cdd..e4a977f8a 100644 --- a/cookbooks/dev/recipes/default.rb +++ b/cookbooks/dev/recipes/default.rb @@ -258,9 +258,7 @@ if node[:postgresql][:clusters][:"12/main"] if details[:repository] site_aliases = details[:aliases] || [] - secret_key_base = details[:secret_key_base] || SecureRandom.base64(96) - - node.normal[:dev][:rails][name][:secret_key_base] = secret_key_base + secret_key_base = persistent_token("dev", "rails", name, "secret_key_base") postgresql_database database_name do cluster "12/main" @@ -313,6 +311,7 @@ if node[:postgresql][:clusters][:"12/main"] database_port node[:postgresql][:clusters][:"12/main"][:port] database_name database_name database_username "apis" + email_from "OpenStreetMap " gpx_dir gpx_directory log_path "#{log_directory}/rails.log" memcache_servers ["127.0.0.1"] @@ -447,8 +446,6 @@ if node[:postgresql][:clusters][:"12/main"] action :drop cluster "12/main" end - - node.normal[:dev][:rails].delete(name) end end