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

ca_prod2 #947

Closed
wants to merge 4 commits into from
Closed
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
28 changes: 28 additions & 0 deletions inventory/host_vars/prod2.openfoodnetwork.ca/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---

domain: prod2.openfoodnetwork.ca
host_id: ca-prod2
rails_env: production

admin_email: admin@openfoodnetwork.ca
mail_domain: openfoodnetwork.ca

puma_timeout: 120

certbot_cert_name: openfoodnetwork.ca
certbot_domains:
- openfoodnetwork.ca
- www.openfoodnetwork.ca
- prod2.openfoodnetwork.ca

postgres_listen_addresses:
- '*'

custom_hba_entries:
- "{{ custom_hba_metabase }}"
- "{{ custom_hba_n8n }}"
- "{{ custom_hba_new_n8n }}"
- "{{ custom_hba_new_n8n_IPv6 }}"
- { type: hostssl, database: "{{ db }}", user: zapier, address: '54.86.9.50/32', auth_method: md5 }

enable_rails_apm: "false"
4 changes: 4 additions & 0 deletions inventory/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ co_prod
[ca_prod]
openfoodnetwork.ca ansible_host=68.183.204.127

[ca_prod2]
prod2.openfoodnetwork.ca ansible_host=146.190.252.221

[ca:children]
ca_prod
ca_prod2

#------------------------------------------------------------------------------
# Costa Rica
Expand Down
1 change: 1 addition & 0 deletions roles/migrate_assets/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ migrate_dirs:
- images
- files
- spree
- storage # Required when local storage is used instead of S3
- system
2 changes: 1 addition & 1 deletion roles/migrate_assets/tasks/push_assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
src: "{{ local_asset_path }}/{{ migrate_dir }}"
dest: "{{ dest_path }}/"
mode: push
rsync_opts:
rsync_opts: # not supported on macOS; just comment out and fix manually after.
- "--chown={{ app_user }}:{{ app_user }}"
become: yes
become_user: "{{ app_user }}"
Loading