Skip to content

Commit b7581ef

Browse files
authored
Merge pull request #324 from opencrvs/server-config
Server config
2 parents 1d3e670 + 3359dd2 commit b7581ef

File tree

4 files changed

+49
-25
lines changed

4 files changed

+49
-25
lines changed

infrastructure/server-setup/inventory/backup.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,23 @@ all:
2121
users:
2222
# @todo this is where you define which development team members have access to the server.
2323
# If you need to remove access from someone, do not remove them from this list, but instead set their state: absent
24-
- name: my-user
24+
- name: niko
2525
ssh_keys:
26-
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABg...Z/rhU= [email protected]
26+
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDGy93egakrVxXHb9LafRQ7T0Cl+p+gCTuymLyofTLK2ncwKhOZ/uV5SuzaKb4lJbBnpmxNdvAxsYXff5srvJfrV0ZZXFQdAAg0mmWuXxrhNfaE52S4s6WVKknTqDE5PhMxzVxzynBnaTdW9Cno7mO+rnS/VybjZIadpOuv5Bek1PztBmrUi4h0Qg1PxXNmFqzyc1dsil1T0nFeu5cH59G5fF1/oSUlC6CYBNoHdQ62IBoydBwMumk/trFoTlxPNK1wXgcUvsr8Sa5A4lN2Rrc6Y22CEGwomtyjHb2kDVbI+7B1Zq+S89yyyvkPFezEsCdK/Ehaj8HzfcsR/bassSn0/Xv3bL20eh7wv7cnut40kFizYifNGfpEqPvSzjfJbB4iG2WSKkW8F9t0/cvd0AdY/3jB0vXhvnRvCqHm1X6JVdGamF3GJeHUMk9JDg3rQdT47BZUtSJer4MGWWcNiALjeWPNLXK9cAvrI/6GbHbPyTzACfR6nhs03Z/eebuvpp0=
27+
state: present
28+
sudoer: true
29+
- name: shoumik
30+
ssh_keys:
31+
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRSRTqm3vOfjyTutISEtbVp7ZddoWa9NZDZLeWZGzLy dsi@dsi-Inspiron-15-3511
32+
state: present
33+
sudoer: true
34+
- name: riku
35+
ssh_keys:
36+
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWIF63S4f3z9wQMvWibmvl7MPuJ6EVrkP0HuvgNhcs/4DZYMcR/GRBvV4ldOSYMlBevIXycgGzNDxKJgENUuwIWanjBu7uVAHyD6+cIRD1h63qq7Cjv/2HYTfBDKOrKzPOhA6zWvKO0ZGWsjRXk5LWMCbKOkvKJCxOpj/NVBxeE4FTK5YADYPV3OSsmBtqTHrVLm2sMmShU/2hMYYswWkobidjX65+nK/X+3C+yJbHwiydVvn+QCrFlFfCLPWKe8rUpOxyxofPqWVQh6CHhHfT8okaOc9sOE8Qeip9ljo84DftJh3Xm3ynOdWK1hH2BvRvxNadWqcE1qECbkg4tx2x [email protected]
2737
state: present
2838
sudoer: true
2939

3040
backups-host:
3141
hosts:
32-
backup: # @todo set this to be the hostname of your backup server
33-
ansible_host: '66.66.66.66'
42+
shoumikland-backup: # @todo set this to be the hostname of your backup server
43+
ansible_host: '5.223.45.193'

infrastructure/server-setup/inventory/production.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,39 @@ all:
3030
users:
3131
# @todo this is where you define which development team members have access to the server.
3232
# If you need to remove access from someone, do not remove them from this list, but instead set their state: absent
33-
- name: my-user
33+
- name: riku
3434
ssh_keys:
35-
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABg...Z/rhU= [email protected]
35+
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWIF63S4f3z9wQMvWibmvl7MPuJ6EVrkP0HuvgNhcs/4DZYMcR/GRBvV4ldOSYMlBevIXycgGzNDxKJgENUuwIWanjBu7uVAHyD6+cIRD1h63qq7Cjv/2HYTfBDKOrKzPOhA6zWvKO0ZGWsjRXk5LWMCbKOkvKJCxOpj/NVBxeE4FTK5YADYPV3OSsmBtqTHrVLm2sMmShU/2hMYYswWkobidjX65+nK/X+3C+yJbHwiydVvn+QCrFlFfCLPWKe8rUpOxyxofPqWVQh6CHhHfT8okaOc9sOE8Qeip9ljo84DftJh3Xm3ynOdWK1hH2BvRvxNadWqcE1qECbkg4tx2x [email protected]
36+
state: present
37+
sudoer: true
38+
- name: shoumik
39+
ssh_keys:
40+
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRSRTqm3vOfjyTutISEtbVp7ZddoWa9NZDZLeWZGzLy dsi@dsi-Inspiron-15-3511
3641
state: present
3742
sudoer: true
3843

3944
docker-manager-first:
4045
hosts:
41-
prod-01: # @todo set this to be the hostname of your target server
42-
ansible_host: '22.22.22.22' # @todo set this to be the hostname of your target server
46+
shoumikland-prod: # @todo set this to be the hostname of your target server
47+
ansible_host: '5.223.47.240' # @todo set this to be the hostname of your target server
4348
data_label: data1
4449
# If you are using a jump server to access this environment, enter other SSH args here.
4550
# ansible_ssh_common_args: '-J [email protected] -o StrictHostKeyChecking=no' # @todo set this to be the IP address of your jump server
4651

4752
# @todo We recommend you add 2-4 workers for a scaled production deployment
4853
# This should depend on the size of your country and the number of end users.
4954
# If you are only using one production worker for very small countries or small pilot projects, replace with an empty block like so: docker-workers: {}
50-
docker-workers:
51-
hosts:
52-
prod-02: # @todo set this to be the hostname of your target server
53-
ansible_host: '33.33.33.33'
55+
# docker-workers:
56+
# hosts:
57+
# prod-02: # @todo set this to be the hostname of your target server
58+
# ansible_host: '33.33.33.33'
5459
# If you are using a jump server to access this environment, enter other SSH args here.
5560
# ansible_ssh_common_args: '-J [email protected] -o StrictHostKeyChecking=no'
5661

5762
backups:
5863
hosts:
59-
backup: # @todo set this to be the hostname of your backup server
60-
ansible_host: '66.66.66.66'
64+
shoumikland-backup: # @todo set this to be the hostname of your backup server
65+
ansible_host: '5.223.45.193' # set this to be the IP address of your backup server
6166
# Written by provision pipeline. Assumes "backup" environment
6267
# exists in Github environments
6368
ansible_ssh_private_key_file: /tmp/backup_ssh_private_key

infrastructure/server-setup/inventory/qa.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,21 @@ all:
1111
users:
1212
# @todo this is where you define which development team members have access to the server.
1313
# If you need to remove access from someone, do not remove them from this list, but instead set their state: absent
14-
- name: my-user
14+
- name: riku
1515
ssh_keys:
16-
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABg...Z/rhU= [email protected]
16+
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWIF63S4f3z9wQMvWibmvl7MPuJ6EVrkP0HuvgNhcs/4DZYMcR/GRBvV4ldOSYMlBevIXycgGzNDxKJgENUuwIWanjBu7uVAHyD6+cIRD1h63qq7Cjv/2HYTfBDKOrKzPOhA6zWvKO0ZGWsjRXk5LWMCbKOkvKJCxOpj/NVBxeE4FTK5YADYPV3OSsmBtqTHrVLm2sMmShU/2hMYYswWkobidjX65+nK/X+3C+yJbHwiydVvn+QCrFlFfCLPWKe8rUpOxyxofPqWVQh6CHhHfT8okaOc9sOE8Qeip9ljo84DftJh3Xm3ynOdWK1hH2BvRvxNadWqcE1qECbkg4tx2x [email protected]
17+
state: present
18+
sudoer: true
19+
- name: shoumik
20+
ssh_keys:
21+
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRSRTqm3vOfjyTutISEtbVp7ZddoWa9NZDZLeWZGzLy dsi@dsi-Inspiron-15-3511
1722
state: present
1823
sudoer: true
1924

2025
docker-manager-first:
2126
hosts:
22-
qa: # @todo set this to be the hostname of your target server
23-
ansible_host: '55.55.55.55' # @todo set this to be the IP address of your server
27+
shoumikland-qa: # @todo set this to be the hostname of your target server
28+
ansible_host: '5.223.51.253' # @todo set this to be the IP address of your server
2429
# ansible_port: '23' # @todo set this to be the SSH port if it's not 22
2530
# internal_ssh_port: '22' # @todo if you are port-forwarding and server SSH port is not the same as ansible_port, set it here
2631
data_label: data1 # for manager machines, this should always be "data1"

infrastructure/server-setup/inventory/staging.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,20 @@ all:
3232
users:
3333
# @todo this is where you define which development team members have access to the server.
3434
# If you need to remove access from someone, do not remove them from this list, but instead set their state: absent
35-
- name: my-user
35+
- name: riku
3636
ssh_keys:
37-
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABg...Z/rhU= [email protected]
37+
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDWIF63S4f3z9wQMvWibmvl7MPuJ6EVrkP0HuvgNhcs/4DZYMcR/GRBvV4ldOSYMlBevIXycgGzNDxKJgENUuwIWanjBu7uVAHyD6+cIRD1h63qq7Cjv/2HYTfBDKOrKzPOhA6zWvKO0ZGWsjRXk5LWMCbKOkvKJCxOpj/NVBxeE4FTK5YADYPV3OSsmBtqTHrVLm2sMmShU/2hMYYswWkobidjX65+nK/X+3C+yJbHwiydVvn+QCrFlFfCLPWKe8rUpOxyxofPqWVQh6CHhHfT8okaOc9sOE8Qeip9ljo84DftJh3Xm3ynOdWK1hH2BvRvxNadWqcE1qECbkg4tx2x [email protected]
38+
state: present
39+
sudoer: true
40+
- name: shoumik
41+
ssh_keys:
42+
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINRSRTqm3vOfjyTutISEtbVp7ZddoWa9NZDZLeWZGzLy dsi@dsi-Inspiron-15-3511
3843
state: present
3944
sudoer: true
40-
4145
docker-manager-first:
4246
hosts:
43-
staging: # @todo set this to be the hostname of your target server
44-
ansible_host: '11.11.11.11' # @todo set this to be the hostname of your target server
47+
shoumikland-staging: # @todo set this to be the hostname of your target server
48+
ansible_host: '5.223.51.99' # @todo set this to be the hostname of your target server
4549
data_label: data1
4650
# If you are using a jump server to access this environment, enter other SSH args here.
4751
# ansible_ssh_common_args: '-J [email protected] -o StrictHostKeyChecking=no' # @todo set this to be the IP address of your jump server
@@ -53,8 +57,8 @@ docker-workers: {}
5357
# @todo if you do not intend to set up automatic sync from the backup server, you can remove this section.
5458
backups:
5559
hosts:
56-
backup: # @todo set this to be the hostname of your backup server
57-
ansible_host: '66.66.66.66' # set this to be the IP address of your backup server
60+
shoumikland-backup: # @todo set this to be the hostname of your backup server
61+
ansible_host: '5.223.45.193' # set this to be the IP address of your backup server
5862
# Written by provision pipeline. Assumes "backup" environment
5963
# exists in Github environments
6064
ansible_ssh_private_key_file: /tmp/backup_ssh_private_key

0 commit comments

Comments
 (0)