Skip to content

Commit

Permalink
Merge pull request #168 from companieshouse/host-config-development
Browse files Browse the repository at this point in the history
Add host configuration for development servers
  • Loading branch information
marcransome authored Jun 18, 2024
2 parents f6cf91c + 097e61d commit 49139c1
Show file tree
Hide file tree
Showing 7 changed files with 283 additions and 25 deletions.
24 changes: 0 additions & 24 deletions group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,4 @@

informix_logs_path: /var/log/informix

iscsi_devices_config:
- alias: db_dump
filesystem:
type: xfs
path: /db_dump
mode: "770"
owner: informix
group: informix
- alias: scud
raw_character_device:
path: /dev/raw/raw1
owner: informix
group: informix
- alias: prod
raw_character_device:
path: /dev/raw/raw2
owner: informix
group: informix
- alias: ef
raw_character_device:
path: /dev/raw/raw3
owner: informix
group: informix

vault_base_path: /applications/heritage-{{ environment_name }}-eu-west-2/fil-tuxedo
Empty file added group_vars/development
Empty file.
149 changes: 149 additions & 0 deletions group_vars/tag_Environment_development.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
---

# Development environment
#
# Server port mappings:
# - ef 6000 (primary/secondary)
# - prod 7000 (primary/secondary)
# - scud 8000 (primary/secondary)
#
# Server ID mappings:
# - ef 0 (primary/secondary)
# - prod 1 (primary/secondary)
# - scud 2 (primary/secondary)

iscsi_devices_config:
- alias: db_dump
multipath: no
filesystem:
type: xfs
path: /db_dump
mode: "770"
owner: informix
group: informix
- alias: scud
multipath: no
raw_character_device:
path: /dev/raw/raw1
owner: informix
group: informix
- alias: prod
multipath: no
raw_character_device:
path: /dev/raw/raw2
owner: informix
group: informix
- alias: ef
multipath: no
raw_character_device:
path: /dev/raw/raw3
owner: informix
group: informix

informix_server_id_increment: 1
informix_server_id_start: 0
informix_server_port_increment: 1000
informix_server_port_start: 6000

cloudwatch_agent_overrides:
metrics_enabled: true

informix_db_config:
ef:
server_id: "{{ informix_server_id_start + (0 * informix_server_id_increment) | int }}"
server_port: "{{ informix_server_port_start + (0 * informix_server_port_increment) | int }}"
dbspaces:
root:
initial_chunk:
path: "/dev/ef"
offset_in_kb: 0
size_in_kb: 2000000
ef_data_dbs:
initial_chunk:
path: "/dev/ef"
offset_in_kb: 2000000
size_in_kb: 17500000
ef_log_dbs:
initial_chunk:
path: "/dev/ef"
offset_in_kb: 19500000
size_in_kb: 500000
server_connections:
- server_name: ef
connection_type: onipcshm
host: localhost
service_or_port: localhost
- server_name: ef_primary
connection_type: onsoctcp
host: instance-1.fil.tuxedo.development.heritage.aws.internal
service_or_port: "{{ informix_server_port_start + (0 * informix_server_port_increment) | int }}"
- server_name: ef_secondary
connection_type: onsoctcp
host: instance-2.fil.tuxedo.development.heritage.aws.internal
service_or_port: "{{ informix_server_port_start + (0 * informix_server_port_increment) | int }}"
users:
- name: efadmin
prod:
server_id: "{{ informix_server_id_start + (1 * informix_server_id_increment) | int }}"
server_port: "{{ informix_server_port_start + (1 * informix_server_port_increment) | int }}"
dbspaces:
root:
initial_chunk:
path: "/dev/prod"
offset_in_kb: 0
size_in_kb: 2000000
prod_data_dbs:
initial_chunk:
path: "/dev/prod"
offset_in_kb: 2000000
size_in_kb: 7500000
prod_log_dbs:
initial_chunk:
path: "/dev/prod"
offset_in_kb: 9500000
size_in_kb: 500000
server_connections:
- server_name: prod
connection_type: onipcshm
host: localhost
service_or_port: localhost
- server_name: prod_primary
connection_type: onsoctcp
host: instance-1.fil.tuxedo.development.heritage.aws.internal
service_or_port: "{{ informix_server_port_start + (1 * informix_server_port_increment) | int }}"
- server_name: prod_secondary
connection_type: onsoctcp
host: instance-2.fil.tuxedo.development.heritage.aws.internal
service_or_port: "{{ informix_server_port_start + (1 * informix_server_port_increment) | int }}"
scud:
server_id: "{{ informix_server_id_start + (2 * informix_server_id_increment) | int }}"
server_port: "{{ informix_server_port_start + (2 * informix_server_port_increment) | int }}"
dbspaces:
root:
initial_chunk:
path: "/dev/scud"
offset_in_kb: 0
size_in_kb: 2000000
scud_data_dbs:
initial_chunk:
path: "/dev/scud"
offset_in_kb: 2000000
size_in_kb: 7500000
scud_log_dbs:
initial_chunk:
path: "/dev/scud"
offset_in_kb: 9500000
size_in_kb: 500000
server_connections:
- server_name: scud
connection_type: onipcshm
host: localhost
service_or_port: localhost
- server_name: scud_primary
connection_type: onsoctcp
host: instance-1.fil.tuxedo.development.heritage.aws.internal
service_or_port: "{{ informix_server_port_start + (2 * informix_server_port_increment) | int }}"
- server_name: scud_secondary
connection_type: onsoctcp
host: instance-2.fil.tuxedo.development.heritage.aws.internal
service_or_port: "{{ informix_server_port_start + (2 * informix_server_port_increment) | int }}"
28 changes: 28 additions & 0 deletions group_vars/tag_Environment_live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,34 @@
# - prod 1 (primary/secondary)
# - scud 2 (primary/secondary)

iscsi_devices_config:
- alias: db_dump
multipath: yes
filesystem:
type: xfs
path: /db_dump
mode: "770"
owner: informix
group: informix
- alias: scud
multipath: yes
raw_character_device:
path: /dev/raw/raw1
owner: informix
group: informix
- alias: prod
multipath: yes
raw_character_device:
path: /dev/raw/raw2
owner: informix
group: informix
- alias: ef
multipath: yes
raw_character_device:
path: /dev/raw/raw3
owner: informix
group: informix

sms_poll_daemon_enabled: false

informix_server_id_increment: 1
Expand Down
28 changes: 28 additions & 0 deletions group_vars/tag_Environment_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,34 @@
# - prod 1 (primary/secondary)
# - scud 2 (primary/secondary)

iscsi_devices_config:
- alias: db_dump
multipath: yes
filesystem:
type: xfs
path: /db_dump
mode: "770"
owner: informix
group: informix
- alias: scud
multipath: yes
raw_character_device:
path: /dev/raw/raw1
owner: informix
group: informix
- alias: prod
multipath: yes
raw_character_device:
path: /dev/raw/raw2
owner: informix
group: informix
- alias: ef
multipath: yes
raw_character_device:
path: /dev/raw/raw3
owner: informix
group: informix

informix_server_id_increment: 1
informix_server_id_start: 0
informix_server_port_increment: 1000
Expand Down
77 changes: 77 additions & 0 deletions group_vars/tag_Name_fil_tuxedo_development_1
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---

informix_server_name_suffix: _primary

informix_management_cron_jobs:
- name: Stop all logical log continuous backup processes
day_of_week: "*"
day_of_month: "*"
minute: "05"
hour: "00"
month: "*"
script: "stop_all_logicals"
- name: Informix EF database logical log archive
day_of_week: "*"
day_of_month: "*"
minute: "10"
hour: "00"
month: "*"
script: "logical_log_archive ef"
- name: Informix EF database level zero backup
day_of_week: "*"
day_of_month: "*"
minute: "20"
hour: "00"
month: "*"
script: "level_zero_backup ef"
- name: Informix EF database statistics update
day_of_week: "*"
day_of_month: "*"
minute: "30"
hour: "00"
month: "*"
script: "update_statistics ef"
- name: Informix PROD database logical log archive
day_of_week: "*"
day_of_month: "*"
minute: "11"
hour: "01"
month: "*"
script: "logical_log_archive prod"
- name: Informix PROD database level zero backup
day_of_week: "*"
day_of_month: "*"
minute: "21"
hour: "01"
month: "*"
script: "level_zero_backup prod"
- name: Informix PROD database statistics update
day_of_week: "*"
day_of_month: "*"
minute: "31"
hour: "01"
month: "*"
script: "update_statistics prod"
- name: Informix SCUD database logical log archive
day_of_week: "*"
day_of_month: "*"
minute: "12"
hour: "02"
month: "*"
script: "logical_log_archive scud"
- name: Informix SCUD database level zero backup
day_of_week: "*"
day_of_month: "*"
minute: "22"
hour: "02"
month: "*"
script: "level_zero_backup scud"
- name: Informix SCUD database statistics update
day_of_week: "*"
day_of_month: "*"
minute: "32"
hour: "02"
month: "*"
script: "update_statistics scud"

informix_host: instance-1.fil.tuxedo.development.heritage.aws.internal
2 changes: 1 addition & 1 deletion requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ roles:
version: "1.0.3"
- src: https://github.com/companieshouse/ansible-role-iscsi-devices
name: iscsi-devices
version: "1.1.0"
version: "1.1.3"
- src: https://github.com/companieshouse/ansible-role-nfs-mounts
name: nfs-mounts
version: "1.0.0"
Expand Down

0 comments on commit 49139c1

Please sign in to comment.