Skip to content

Commit

Permalink
Add India configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
duleorlovic committed Nov 2, 2023
1 parent e359cac commit 7d8f208
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 15 deletions.
1 change: 1 addition & 0 deletions files/keys/dule.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC5h3Ufwomcqd4SWddO82OJXG5gXmGivCHyPWUHqoyjpuw5qlU5abGs4DCcwqDv03WTzFCi75D8e+MVrx4JBFh0rSJWVRPgArX3IMovvEBzEm38HJEEOk6+ZSYznLxTDdNz7JIWe/EnqlHFRy1q82naACmxKSjXQJzUZuRpYMhj1hxmPsvN7kJ8Sf+CzDH/c63SuYXrlXsjEdc+DEmwa+Rp+k57WI1fJLeK1g1StoT3W5/u92b9UGEy/WxC4zVdkfsg+70GOeRNKyvssE7iPb77jOW/ywnZwi6M8e8shmIxcMI8M3co32zh3qiSbpVVWupFvz2TDfHV/nTnu99I0FdEZsoFnTMbiXuaVIfiqpQbUotar/JynznX68TyM77FBI99RnmEmdGaxacsC0qULQu25S/JdJtUX3JtWKPmm/ciElUhbVnpNi9Yd2Z9lvjvfil/8/DBAfatdvYhRMq4aH5QNeBvpj5BSSqTDzUJkc/ZsrnPIlWPxvxpG7G0cmklXj0= dule@dules-MacBook-Air.local
18 changes: 18 additions & 0 deletions inventory/group_vars/in.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---

# See https://github.com/openfoodfoundation/ofn-install/wiki/Setup for more info
checkout_zone:
country_code: IN
currency: INR
locale: en
language: en
language_packages:
- language-pack-en-base
l10n_repo: https://github.com/duleorlovic/l10n_in.git
timezone: "Asia/Kolkata"

# Users listed here will have their key from /files/keys added to the app_user
users_sysadmin:
- "{{ core_devs }}"
- dule
developer_email: info@openfoodnetwork.in
13 changes: 0 additions & 13 deletions inventory/group_vars/india.yml

This file was deleted.

7 changes: 6 additions & 1 deletion inventory/host_vars/openfoodnetwork.in/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ domain: openfoodnetwork.in
host_id: in-prod
rails_env: production

admin_email:
mail_domain: openfoodnetwork.in

admin_email: info@openfoodnetwork.in

# Size in bytes. You can also use units like 1G, 512MiB or 1000KB. See: `man fallocate`
# The default is `false`, not installing a swapfile.
swapfile_size: 1G
2 changes: 1 addition & 1 deletion inventory/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ ie_prod
# India

[in_prod]
openfoodnetwork.in
openfoodnetwork.in ansible_user=ubuntu

[in:children]
in_prod
Expand Down
1 change: 1 addition & 0 deletions roles/app/templates/env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CURRENCY="{{ currency }}"
CHECKOUT_ZONE="{{ checkout_zone }}"

GOOGLE_MAPS_API_KEY="{{ google_maps_api_key }}"
GOOGLE_MAPS_REGION="{{ google_maps_region }}"

ADMIN_EMAIL="{{ admin_email }}"
ADMIN_PASSWORD="{{ admin_password }}"
Expand Down

0 comments on commit 7d8f208

Please sign in to comment.