Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup deploy for new prod-temp environment #1756

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

# Default value for :linked_files is []
set :linked_files, fetch(:linked_files, []).push(
'config/secrets.yml',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed, value comes from vault and is set in the environment via puppet, e.g. https://github.com/sul-dlss/puppet/blob/production/hieradata/node/sul-pub-prod.stanford.edu.yaml#L67

'config/database.yml',
'config/honeybadger.yml'
)
Expand Down
12 changes: 12 additions & 0 deletions config/deploy/prod-temp.rb
Original file line number Diff line number Diff line change
@@ -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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new prod-temp environment (already setup)

2 changes: 2 additions & 0 deletions config/deploy/qa-temp.rb
Original file line number Diff line number Diff line change
@@ -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!
Expand Down
2 changes: 1 addition & 1 deletion config/deploy/qa.rb
Original file line number Diff line number Diff line change
@@ -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)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disable harvesting for now in this environment, not needed during testing

server 'sul-pub-cap-dev-a.stanford.edu', user: 'pub', roles: %w(web db app)

Capistrano::OneTimeKey.generate_one_time_key!

Expand Down
2 changes: 2 additions & 0 deletions config/deploy/uat-temp.rb
Original file line number Diff line number Diff line change
@@ -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!
Expand Down