From 025e10286d20e53d6712efa0b5384bb1fd3d4360 Mon Sep 17 00:00:00 2001 From: Peter Mangiafico Date: Fri, 17 Jan 2025 16:14:29 -0800 Subject: [PATCH 1/2] setup deploy for new prod-temp environment --- config/deploy/prod-temp.rb | 12 ++++++++++++ config/deploy/qa-temp.rb | 2 ++ config/deploy/qa.rb | 2 +- config/deploy/uat-temp.rb | 2 ++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 config/deploy/prod-temp.rb diff --git a/config/deploy/prod-temp.rb b/config/deploy/prod-temp.rb new file mode 100644 index 000000000..81748f34b --- /dev/null +++ b/config/deploy/prod-temp.rb @@ -0,0 +1,12 @@ +# see https://github.com/sul-dlss/sul_pub/wiki/Servers-Deployment-environment +# see https://github.com/sul-dlss/operations-tasks/issues/3951 +# and https://docs.google.com/document/d/14K09NJG1O6Zo8u0LfrxK5g8ADLTBZ_HzkAnEr_YAsS8 +server 'sul-pub-prod-temp.stanford.edu', user: 'pub', roles: %w(web db app) + +Capistrano::OneTimeKey.generate_one_time_key! + +set :rails_env, 'production' + +set :bundle_without, %w(test development).join(' ') + +set :log_level, :info diff --git a/config/deploy/qa-temp.rb b/config/deploy/qa-temp.rb index d2afbd7e9..749abfdb6 100644 --- a/config/deploy/qa-temp.rb +++ b/config/deploy/qa-temp.rb @@ -1,4 +1,6 @@ # see https://github.com/sul-dlss/sul_pub/wiki/Servers-Deployment-environment +# see https://github.com/sul-dlss/operations-tasks/issues/3879 +# see https://docs.google.com/document/d/14K09NJG1O6Zo8u0LfrxK5g8ADLTBZ_HzkAnEr_YAsS8 server 'sul-pub-cap-dev-temp.stanford.edu', user: 'pub', roles: %w(web db harvester_dev app) Capistrano::OneTimeKey.generate_one_time_key! diff --git a/config/deploy/qa.rb b/config/deploy/qa.rb index d54e2d517..abb132ed0 100644 --- a/config/deploy/qa.rb +++ b/config/deploy/qa.rb @@ -1,5 +1,5 @@ # see https://github.com/sul-dlss/sul_pub/wiki/Servers-Deployment-environment -server 'sul-pub-cap-dev-a.stanford.edu', user: 'pub', roles: %w(web db harvester_dev app) +server 'sul-pub-cap-dev-a.stanford.edu', user: 'pub', roles: %w(web db app) Capistrano::OneTimeKey.generate_one_time_key! diff --git a/config/deploy/uat-temp.rb b/config/deploy/uat-temp.rb index 6b4d8c894..41d62a678 100644 --- a/config/deploy/uat-temp.rb +++ b/config/deploy/uat-temp.rb @@ -1,4 +1,6 @@ # see https://github.com/sul-dlss/sul_pub/wiki/Servers-Deployment-environment +# see https://github.com/sul-dlss/operations-tasks/issues/3879 +# see https://docs.google.com/document/d/14K09NJG1O6Zo8u0LfrxK5g8ADLTBZ_HzkAnEr_YAsS8 server 'sul-pub-cap-uat-temp.stanford.edu', user: 'pub', roles: %w(web db app harvester_uat external_monitor) Capistrano::OneTimeKey.generate_one_time_key! From 5585502e149d0405a3cbf6a4951baf52cac093dc Mon Sep 17 00:00:00 2001 From: Peter Mangiafico Date: Fri, 17 Jan 2025 16:54:01 -0800 Subject: [PATCH 2/2] seceret key base comes from vault now --- config/deploy.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index d2d4b67f7..534e0fba7 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -12,7 +12,6 @@ # Default value for :linked_files is [] set :linked_files, fetch(:linked_files, []).push( - 'config/secrets.yml', 'config/database.yml', 'config/honeybadger.yml' )