deploy new shards.staging fleet

https://github.com/status-im/infra-shards/issues/29

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-03-18 20:48:58 +01:00
parent 4ef143ed20
commit 883893f547
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
4 changed files with 95 additions and 12 deletions

View File

@ -12,7 +12,7 @@ nim_waku_log_level: 'debug'
nim_waku_protocols_enabled: ['relay', 'filter', 'lightpush', 'peer-exchange'] nim_waku_protocols_enabled: ['relay', 'filter', 'lightpush', 'peer-exchange']
nim_waku_disc_v5_enabled: true nim_waku_disc_v5_enabled: true
nim_waku_dns4_domain_name: '{{ dns_entry }}' nim_waku_dns4_domain_name: '{{ dns_entry }}'
nim_waku_node_key: '{{lookup("bitwarden", "fleets/shards/"+stage+"/nodekeys", field=hostname)}}' #nim_waku_node_key: '{{lookup("bitwarden", "fleets/shards/"+stage+"/nodekeys", field=hostname)}}'
# Topic configuration # Topic configuration
nim_waku_cluster_id: 16 nim_waku_cluster_id: 16
@ -44,7 +44,8 @@ nim_waku_store_message_retention_policy: 'time:2592000' # 30 days
# DNS Discovery # DNS Discovery
nim_waku_dns_disc_enabled: true nim_waku_dns_disc_enabled: true
nim_waku_dns_disc_url_map: nim_waku_dns_disc_url_map:
test: 'enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im' test: 'enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im'
staging: 'enrtree://AI4W5N5IFEUIHF5LESUAOSMV6TKWF2MB6GU2YK7PU4TYUGUNOCEPW@boot.staging.shards.nodes.status.im'
nim_waku_dns_disc_url: '{{ nim_waku_dns_disc_url_map[stage] }}' nim_waku_dns_disc_url: '{{ nim_waku_dns_disc_url_map[stage] }}'
# Websockets # Websockets
@ -65,10 +66,16 @@ certbot_docker_enabled: true
certbot_admin_email: 'devops@status.im' certbot_admin_email: 'devops@status.im'
certbot_services_to_stop: ['nginx'] certbot_services_to_stop: ['nginx']
certbot_containers_to_stop: ['{{ nim_waku_cont_name }}'] certbot_containers_to_stop: ['{{ nim_waku_cont_name }}']
certbot_certs: certbot_certs: '{{ certbot_certs_map[stage] }}'
- domains: # FIXME: Remove once ENR records are updated without the domain.
- '{{ nim_waku_websocket_domain }}' certbot_certs_map:
- '{{ nim_waku_websocket_domain | replace("status.im", "statusim.net") }}' # Legacy Domain test:
- domains:
- '{{ nim_waku_websocket_domain }}'
- '{{ nim_waku_websocket_domain | replace("status.im", "statusim.net") }}' # Legacy Domain
staging:
- domains:
- '{{ nim_waku_websocket_domain }}'
# Open LibP2P Ports # Open LibP2P Ports
open_ports_default_comment: '{{ nim_waku_cont_name }}' open_ports_default_comment: '{{ nim_waku_cont_name }}'

View File

@ -12,7 +12,7 @@ nim_waku_log_level: 'debug'
nim_waku_protocols_enabled: ['relay', 'store'] nim_waku_protocols_enabled: ['relay', 'store']
nim_waku_disc_v5_enabled: true nim_waku_disc_v5_enabled: true
nim_waku_dns4_domain_name: '{{ dns_entry }}' nim_waku_dns4_domain_name: '{{ dns_entry }}'
nim_waku_node_key: '{{lookup("bitwarden", "fleets/shards/"+stage+"/nodekeys", field=hostname)}}' #nim_waku_node_key: '{{lookup("bitwarden", "fleets/shards/"+stage+"/nodekeys", field=hostname)}}'
# Topic configuration # Topic configuration
nim_waku_cluster_id: 16 nim_waku_cluster_id: 16
@ -49,7 +49,8 @@ nim_waku_store_message_retention_policy: 'time:2592000' # 30 days
# DNS Discovery # DNS Discovery
nim_waku_dns_disc_enabled: true nim_waku_dns_disc_enabled: true
nim_waku_dns_disc_url_map: nim_waku_dns_disc_url_map:
test: 'enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im' test: 'enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im'
staging: 'enrtree://AI4W5N5IFEUIHF5LESUAOSMV6TKWF2MB6GU2YK7PU4TYUGUNOCEPW@boot.staging.shards.nodes.status.im'
nim_waku_dns_disc_url: '{{ nim_waku_dns_disc_url_map[stage] }}' nim_waku_dns_disc_url: '{{ nim_waku_dns_disc_url_map[stage] }}'
# Websockets # Websockets
@ -70,10 +71,16 @@ certbot_docker_enabled: true
certbot_admin_email: 'devops@status.im' certbot_admin_email: 'devops@status.im'
certbot_services_to_stop: ['nginx'] certbot_services_to_stop: ['nginx']
certbot_containers_to_stop: ['{{ nim_waku_cont_name }}'] certbot_containers_to_stop: ['{{ nim_waku_cont_name }}']
certbot_certs: certbot_certs: '{{ certbot_certs_map[stage] }}'
- domains: # FIXME: Remove once ENR records are updated without the domain.
- '{{ nim_waku_websocket_domain }}' certbot_certs_map:
- '{{ nim_waku_websocket_domain | replace("status.im", "statusim.net") }}' # Legacy Domain test:
- domains:
- '{{ nim_waku_websocket_domain }}'
- '{{ nim_waku_websocket_domain | replace("status.im", "statusim.net") }}' # Legacy Domain
staging:
- domains:
- '{{ nim_waku_websocket_domain }}'
# Open LibP2P Ports # Open LibP2P Ports
open_ports_default_comment: '{{ nim_waku_cont_name }}' open_ports_default_comment: '{{ nim_waku_cont_name }}'

66
ansible/inventory/staging Normal file
View File

@ -0,0 +1,66 @@
# NOTE: This file is generated by terraform.py
# For emergency use when Consul fails
[all]
boot-01.ac-cn-hongkong-c.shards.staging hostname=boot-01.ac-cn-hongkong-c.shards.staging ansible_host=47.76.168.186 env=shards stage=staging data_center=ac-cn-hongkong-c region=cn-hongkong-c dns_entry=boot-01.ac-cn-hongkong-c.shards.staging.status.im
boot-01.do-ams3.shards.staging hostname=boot-01.do-ams3.shards.staging ansible_host=143.198.250.233 env=shards stage=staging data_center=do-ams3 region=ams3 dns_entry=boot-01.do-ams3.shards.staging.status.im
boot-01.gc-us-central1-a.shards.staging hostname=boot-01.gc-us-central1-a.shards.staging ansible_host=104.197.5.96 env=shards stage=staging data_center=gc-us-central1-a region=us-central1-a dns_entry=boot-01.gc-us-central1-a.shards.staging.status.im
store-01.ac-cn-hongkong-c.shards.staging hostname=store-01.ac-cn-hongkong-c.shards.staging ansible_host=8.218.206.134 env=shards stage=staging data_center=ac-cn-hongkong-c region=cn-hongkong-c dns_entry=store-01.ac-cn-hongkong-c.shards.staging.status.im
store-01.do-ams3.shards.staging hostname=store-01.do-ams3.shards.staging ansible_host=24.144.78.119 env=shards stage=staging data_center=do-ams3 region=ams3 dns_entry=store-01.do-ams3.shards.staging.status.im
store-01.gc-us-central1-a.shards.staging hostname=store-01.gc-us-central1-a.shards.staging ansible_host=35.224.231.209 env=shards stage=staging data_center=gc-us-central1-a region=us-central1-a dns_entry=store-01.gc-us-central1-a.shards.staging.status.im
store-02.ac-cn-hongkong-c.shards.staging hostname=store-02.ac-cn-hongkong-c.shards.staging ansible_host=47.76.178.164 env=shards stage=staging data_center=ac-cn-hongkong-c region=cn-hongkong-c dns_entry=store-02.ac-cn-hongkong-c.shards.staging.status.im
store-02.do-ams3.shards.staging hostname=store-02.do-ams3.shards.staging ansible_host=24.144.78.120 env=shards stage=staging data_center=do-ams3 region=ams3 dns_entry=store-02.do-ams3.shards.staging.status.im
store-02.gc-us-central1-a.shards.staging hostname=store-02.gc-us-central1-a.shards.staging ansible_host=34.72.140.183 env=shards stage=staging data_center=gc-us-central1-a region=us-central1-a dns_entry=store-02.gc-us-central1-a.shards.staging.status.im
store-db-01.ac-cn-hongkong-c.shards.staging hostname=store-db-01.ac-cn-hongkong-c.shards.staging ansible_host=47.76.183.131 env=shards stage=staging data_center=ac-cn-hongkong-c region=cn-hongkong-c dns_entry=store-db-01.ac-cn-hongkong-c.shards.staging.status.im
store-db-01.do-ams3.shards.staging hostname=store-db-01.do-ams3.shards.staging ansible_host=24.144.78.121 env=shards stage=staging data_center=do-ams3 region=ams3 dns_entry=store-db-01.do-ams3.shards.staging.status.im
store-db-01.gc-us-central1-a.shards.staging hostname=store-db-01.gc-us-central1-a.shards.staging ansible_host=34.173.29.3 env=shards stage=staging data_center=gc-us-central1-a region=us-central1-a dns_entry=store-db-01.gc-us-central1-a.shards.staging.status.im
[ac-cn-hongkong-c]
boot-01.ac-cn-hongkong-c.shards.staging
store-01.ac-cn-hongkong-c.shards.staging
store-02.ac-cn-hongkong-c.shards.staging
store-db-01.ac-cn-hongkong-c.shards.staging
[boot]
boot-01.ac-cn-hongkong-c.shards.staging
boot-01.do-ams3.shards.staging
boot-01.gc-us-central1-a.shards.staging
[do-ams3]
boot-01.do-ams3.shards.staging
store-01.do-ams3.shards.staging
store-02.do-ams3.shards.staging
store-db-01.do-ams3.shards.staging
[gc-us-central1-a]
boot-01.gc-us-central1-a.shards.staging
store-01.gc-us-central1-a.shards.staging
store-02.gc-us-central1-a.shards.staging
store-db-01.gc-us-central1-a.shards.staging
[shards.staging]
boot-01.ac-cn-hongkong-c.shards.staging
boot-01.do-ams3.shards.staging
boot-01.gc-us-central1-a.shards.staging
store-01.ac-cn-hongkong-c.shards.staging
store-01.do-ams3.shards.staging
store-01.gc-us-central1-a.shards.staging
store-02.ac-cn-hongkong-c.shards.staging
store-02.do-ams3.shards.staging
store-02.gc-us-central1-a.shards.staging
store-db-01.ac-cn-hongkong-c.shards.staging
store-db-01.do-ams3.shards.staging
store-db-01.gc-us-central1-a.shards.staging
[store]
store-01.ac-cn-hongkong-c.shards.staging
store-01.do-ams3.shards.staging
store-01.gc-us-central1-a.shards.staging
store-02.ac-cn-hongkong-c.shards.staging
store-02.do-ams3.shards.staging
store-02.gc-us-central1-a.shards.staging
[store-db]
store-db-01.ac-cn-hongkong-c.shards.staging
store-db-01.do-ams3.shards.staging
store-db-01.gc-us-central1-a.shards.staging

View File

@ -24,6 +24,9 @@ locals {
test = { test = {
/* Settings specific to the test fleet/workspace. */ /* Settings specific to the test fleet/workspace. */
} }
staging = {
/* Settings specific to the test fleet/workspace. */
}
} }
} }