Skip to content

Commit 7bb89ba

Browse files
authored
Merge branch 'master' into Create_ch_staging_instance
2 parents 0405399 + 68a7df5 commit 7bb89ba

8 files changed

Lines changed: 108 additions & 20 deletions

File tree

files/keys/marco.pub

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC/jaRoRrJhqXL3KTDlRE+yqqt/mpzjN5ttveGF4WnqVoMwWsK7R03Zh0WyFL62sZKx7hdtN5YTeVlIWDfl9I0nygA64eimAzuVE6V8IDHuXe9NbOuyeZYQ0qqb4N2ftiJ7m5A88/ZIf3nhm/YhTUEdCpgG2JzrsJrnsePYEmSEyZAeqm9KZgHDALL23SUYAfzr1WOzDXRfAdQDryMr9qrPD9TKOUDmZJAOkQTrJ19jI8Q3/1a6K74fd7leZOGsdkSI0o1Bsh8R/tf9IQIZ75PsFhZpq1utoBKHauChrjDjsQQrOGvVpgfy7sRVLBV7sQxgJqYM3IjBmAh7EYVIAGkN cardno:000500000399

inventory/group_vars/all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ postgres_encoding: en_US.utf8
8282
# Entries marked custom_* can be defined in /host_vars files, and will be appended
8383
# to the defaults if present. Make sure you use the "list" notation with the dashes!
8484

85-
postgresql_version: "{% if ansible_distribution_major_version == '16' %}9.5{% elif ansible_distribution_major_version == '18' %}10{% elif ansible_distribution_major_version == '20' %}12{% elif ansible_distribution_major_version == '22' %}14{% else %}16{% endif %}"
85+
postgresql_version: "{% if ansible_distribution_major_version == '18' %}10{% elif ansible_distribution_major_version == '20' %}12{% elif ansible_distribution_major_version == '22' %}14{% else %}16{% endif %}"
8686
postgresql_data_dir: "/var/lib/postgresql/{{ postgresql_version }}/main"
8787
postgresql_bin_path: "/usr/lib/postgresql/{{ postgresql_version }}/bin"
8888
postgresql_config_path: "/etc/postgresql/{{ postgresql_version }}/main"

inventory/group_vars/ch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@ developer_email: mikel.cordovilla@tegonal.com
1919
# Users listed here will have their key from /files/keys added to the app_user
2020
users_sysadmin:
2121
- mikel
22+
- marco
2223
- "{{ core_devs }}"
2324

inventory/group_vars/gr.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
3+
# See https://github.com/openfoodfoundation/ofn-install/wiki/Setup for more info
4+
checkout_zone: Europe
5+
country_code: GR
6+
currency: EUR
7+
locale: el # Default locale for OFN instance
8+
available_locales: el, en_FR # Available locales for OFN instance
9+
language: en_US.UTF-8 # Default language for the server
10+
language_packages: # Language packages for the server
11+
- language-pack-en-base
12+
l10n_repo: https://github.com/mcmpp/l10n_el.git
13+
timezone: Athens
14+
15+
16+
# Used for the LetsEncrypt email setting
17+
developer_email: mikel.cordovilla@tegonal.com
18+
19+
# Users listed here will have their key from /files/keys added to the app_user
20+
users_sysadmin:
21+
- mikel
22+
- "{{ core_devs }}"
23+
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
3+
domain: staging.openfoodnetwork.gr
4+
host_id: gr-staging
5+
rails_env: staging
6+
7+
admin_email: hello@openfoodnetwork.gr
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:
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
3+
domain: www.openfoodnetwork.gr
4+
host_id: ch-prod # country initials (eg uk, es, de) and environment (default is prod)
5+
rails_env: production
6+
7+
admin_email: hello@openfoodnetwork.gr
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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ uk_prod
206206
de_prod
207207
ie_prod
208208
hu_prod
209+
gr_prod
209210

210211
#------------------------------------------------------------------------------
211212
# America
@@ -232,6 +233,7 @@ au_staging
232233
uk_staging
233234
fr_staging
234235
ch_staging
236+
gr_staging
235237

236238
#------------------------------------------------------------------------------
237239
# All
@@ -257,6 +259,7 @@ cr
257259
hu
258260
ch
259261
fi
262+
gr
260263

261264
#------------------------------------------------------------------------------
262265
# Switzerland
@@ -279,3 +282,16 @@ openfoodnetwork.fi ansible_host=157.180.89.177
279282

280283
[fi:children]
281284
fi_prod
285+
286+
#------------------------------------------------------------------------------
287+
# Greece
288+
289+
[gr_prod]
290+
www.openfoodnetwork.gr ansible_host=185.4.135.184
291+
292+
[gr_staging]
293+
staging.openfoodnetwork.gr ansible_host=185.4.132.192
294+
295+
[gr:children]
296+
gr_prod
297+
gr_staging

roles/common/tasks/main.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -48,24 +48,5 @@
4848
- webp
4949
tags: packages
5050

51-
- name: install base packages for old distros
52-
apt:
53-
name: "{{ packages }}"
54-
become: yes
55-
vars:
56-
packages:
57-
# Ansible support
58-
- python-psycopg2
59-
tags: packages
60-
when: ansible_distribution_major_version <= '18'
61-
6251
- name: set up redis
6352
include_tasks: redis.yml
64-
65-
- name: shut down memcached if present
66-
service:
67-
name: memcached
68-
state: stopped
69-
ignore_errors: yes
70-
failed_when: false
71-
become: yes

0 commit comments

Comments
 (0)