]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/dev/recipes/default.rb
Bump cookstyle from 7.3.10 to 7.3.11
[chef.git] / cookbooks / dev / recipes / default.rb
index 1888e9cdde5f12035b5a005242e525cfd9b82ece..ed190970d91ebee15bce62781364bf32bf794037 100644 (file)
@@ -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"
@@ -447,8 +445,6 @@ if node[:postgresql][:clusters][:"12/main"]
         action :drop
         cluster "12/main"
       end
-
-      node.normal[:dev][:rails].delete(name)
     end
   end