Skip to content

Commit 985a63a

Browse files
committed
Adding the ch staging instance
1 parent 6039243 commit 985a63a

4 files changed

Lines changed: 44 additions & 6 deletions

File tree

inventory/group_vars/ch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
checkout_zone: Europe
55
country_code: CH
66
currency: CHF
7-
locale: en_CH # Default locale for OFN instance
7+
locale: de_CH # Default locale for OFN instance
88
available_locales: de_CH,fr_CH,it_CH,en_CH # Available locales for OFN instance
99
language: en_US.UTF-8 # Default language for the server
1010
language_packages: # Language packages for the server
11-
- language-pack-en-base
11+
- language-pack-de-base
1212
l10n_repo: https://github.com/openfoodfoundation/l10n_ch.git
1313
timezone: Vienna
1414

inventory/host_vars/app.openfoodswitzerland.ch/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ admin_email: info@openfoodswitzerland.ch
1919
swapfile_size: 1G
2020

2121
# Enable external database access for third party integrations
22-
#postgres_listen_addresses:
23-
# - '*'
22+
postgres_listen_addresses:
23+
- '*'
2424
#
2525
#custom_hba_entries:
2626
# - { type: hostssl, database: "{{ db }}", user: zapier, address: '54.86.9.50/32', auth_method: md5 }
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
3+
domain: staging.openfoodswitzerland.ch
4+
host_id: ch-staging # country initials (eg uk, es, de) and environment (default is prod)
5+
rails_env: staging
6+
7+
admin_email: mikel.cordovilla@openfoodswitzerland.ch
8+
9+
# Optional list of subdomains to register in letsencrypt certificate
10+
# Defaults to {{ domain }} if list is undefined
11+
#
12+
#certbot_domains:
13+
# - example.com
14+
# - www.example.com
15+
# - info.example.com
16+
17+
# Size in bytes. You can also use units like 1G, 512MiB or 1000KB. See: `man fallocate`
18+
# The default is `false`, not installing a swapfile.
19+
swapfile_size: 1G
20+
21+
# Enable external database access for third party integrations
22+
postgres_listen_addresses:
23+
- '*'
24+
#
25+
#custom_hba_entries:
26+
# - { type: hostssl, database: "{{ db }}", user: zapier, address: '54.86.9.50/32', auth_method: md5 }
27+
#
28+
#custom_env_vars: |
29+
# OFN_FEATURE_CONNECT_AND_LEARN="true"
30+
31+
# Overridable Image Settings
32+
# attachment_url:
33+
# attachment_path:

inventory/hosts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ staging.openfoodnetwork.org.uk
137137
uk_prod
138138
uk_staging
139139

140-
141140
#------------------------------------------------------------------------------
142141
# USA
143142

@@ -207,6 +206,7 @@ uk_prod
207206
de_prod
208207
ie_prod
209208
hu_prod
209+
ch_prod
210210

211211
#------------------------------------------------------------------------------
212212
# America
@@ -232,6 +232,7 @@ in_prod
232232
au_staging
233233
uk_staging
234234
fr_staging
235+
ch_staging
235236

236237
#------------------------------------------------------------------------------
237238
# All
@@ -262,10 +263,14 @@ fi
262263
# Switzerland
263264

264265
[ch_prod]
265-
app.openfoodswitzerland.ch ansible_host=195.15.219.220
266+
app.openfoodswitzerland.ch ansible_host=89.47.51.245
267+
268+
[ch_staging]
269+
staging.openfoodswitzerland.ch ansible_host=185.143.102.14
266270

267271
[ch:children]
268272
ch_prod
273+
ch_staging
269274

270275
#------------------------------------------------------------------------------
271276
# Finland

0 commit comments

Comments
 (0)