X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/9d24f391a0b5f5b952d1c46b2264460a37f6b447..a8719d3ebeae52ab2e0586a0ebb56a0c448a439e:/cookbooks/web/resources/rails_port.rb diff --git a/cookbooks/web/resources/rails_port.rb b/cookbooks/web/resources/rails_port.rb index 7cb82631a..2dcbbc586 100644 --- a/cookbooks/web/resources/rails_port.rb +++ b/cookbooks/web/resources/rails_port.rb @@ -92,6 +92,7 @@ property :signup_ip_max_burst, Integer property :signup_email_per_day, Integer property :signup_email_max_burst, Integer property :doorkeeper_signing_key, String +property :user_account_deletion_delay, Integer action :create do package %W[ @@ -349,7 +350,8 @@ action :create do "signup_ip_max_burst", "signup_email_per_day", "signup_email_max_burst", - "doorkeeper_signing_key" + "doorkeeper_signing_key", + "user_account_deletion_delay" ).compact.merge( "server_protocol" => "https", "server_url" => new_resource.site, @@ -425,7 +427,8 @@ action :create do directory rails_directory command "rails yarn:install" environment "HOME" => rails_directory, - "RAILS_ENV" => "production" + "RAILS_ENV" => "production", + "SECRET_KEY_BASE_DUMMY" => "1" user new_resource.user group new_resource.group subscribes :run, "git[#{rails_directory}]" @@ -437,7 +440,8 @@ action :create do directory rails_directory command "rails i18n:js:export" environment "HOME" => rails_directory, - "RAILS_ENV" => "production" + "RAILS_ENV" => "production", + "SECRET_KEY_BASE_DUMMY" => "1" user new_resource.user group new_resource.group subscribes :run, "git[#{rails_directory}]" @@ -449,7 +453,8 @@ action :create do directory rails_directory command "rails assets:precompile" environment "HOME" => rails_directory, - "RAILS_ENV" => "production" + "RAILS_ENV" => "production", + "SECRET_KEY_BASE_DUMMY" => "1" user new_resource.user group new_resource.group subscribes :run, "git[#{rails_directory}]"