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

[bibdata] Use appropriate Rails env for staging and qa #4862

Merged
merged 1 commit into from
Apr 17, 2024
Merged
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
4 changes: 2 additions & 2 deletions group_vars/bibdata/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nfs_server: "128.112.204.141"
postgres_version: 15
passenger_server_name: "bibdata-qa.*"
passenger_app_root: "/opt/bibdata/current/public"
passenger_app_env: "production"
passenger_app_env: "qa"
passenger_extra_config: "{{ lookup('file', 'roles/bibdata/templates/nginx_extra_config') }}"
rails_app_name: "bibdata"
rails_app_directory: "bibdata"
Expand All @@ -17,7 +17,7 @@ rails_app_dependencies:
- libtool
- autoconf
- redis-tools
rails_app_env: "production"
rails_app_env: "qa"
rails_app_vars:
- name: ALMA_REGION
value: "{{ vault_alma_region }}"
Expand Down
48 changes: 2 additions & 46 deletions group_vars/bibdata/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pg_hba_method: "md5"
pg_hba_source: "{{ ansible_host }}/32"
passenger_server_name: bibdata-staging.*
passenger_app_root: "/opt/bibdata/current/public"
passenger_app_env: "production"
passenger_app_env: "staging"
passenger_extra_config: "{{ lookup('file', 'roles/bibdata/templates/nginx_extra_config') }}"
rails_app_name: "bibdata"
rails_app_directory: "bibdata"
Expand All @@ -22,7 +22,7 @@ rails_app_dependencies:
- libtool
- autoconf
- redis-tools
rails_app_env: "production"
rails_app_env: "staging"
rails_app_vars:
- name: ALMA_REGION
value: "{{ vault_alma_region }}"
Expand Down Expand Up @@ -142,48 +142,4 @@ postgres_port: "{{ bibdata_db_port }}"
postgres_admin_user: "{{ db_clusteradmin_user }}"
postgres_admin_password: "{{ db_clusteradmin_password }}"
postgresql_is_local: false

datadog_api_key: "{{ vault_datadog_key }}"
datadog_config:
tags: "application:bibdata, environment:staging, type:webserver"
apm_enabled: "true"
log_enabled: true
process_config:
enabled: "true"
apm_config:
analyzed_spans:
bibdata|rack.request: 1
filter_tags:
reject: ["http.useragent:nginx/1.23.4 (health check)", "operation:heartbeat", "operation:job_fetch", "operation:scheduled_push", "operation:scheduled_poller_wait"]
ignore_resources: ["sidekiq.heartbeat", "sidekiq.job_fetch", "sidekiq.scheduled_push"]
datadog_checks:
ruby:
init_config:
logs:
- type: file
path: /opt/bibdata/current/log/production.log
service: bibdata
source: ruby
- type: file
path: /opt/bibdata/current/log/traject-error.log
service: traject
source: ruby
nginx:
init_config:
logs:
- type: file
path: /var/log/nginx/access.log
service: bibdata
source: nginx
sourcecategory: http_web_access
- type: file
path: /var/log/nginx/error.log
service: bibdata
source: nginx
sourcecategory: http_web_access
tls:
init_config:
instances:
- server: bibdata-alma-staging.princeton.edu
port: 443
timezone: "America/New_York"
Loading