store-db: setup hosts and connection

This commit is contained in:
Anton Iakimov 2023-09-29 12:26:44 +02:00
parent 001eaab79b
commit a8c4c0395a
No known key found for this signature in database
GPG Key ID: DEA1FE58DD8BF7FA
3 changed files with 16 additions and 2 deletions

View File

@ -30,6 +30,10 @@ nim_waku_rpc_tcp_port: 8545
nim_waku_p2p_max_connections: 300 nim_waku_p2p_max_connections: 300
# Store # Store
nim_waku_store_message_db_name: 'nim-waku'
nim_waku_store_message_db_user: 'nim-waku'
nim_waku_store_message_db_pass: '{{lookup("bitwarden", "fleets/shards/"+stage+"/db/nim-waku")}}'
nim_waku_store_message_db_url: 'postgres://{{ nim_waku_store_message_db_user}}:{{ nim_waku_store_message_db_pass}}@store-db-01.{{ ansible_domain }}.wg:5432/{{nim_waku_store_message_db_name}}'
nim_waku_store_message_retention_policy: 'time:2592000' # 30 days nim_waku_store_message_retention_policy: 'time:2592000' # 30 days
# DNS Discovery # DNS Discovery

View File

@ -22,3 +22,10 @@
- { role: open-ports, tags: open-ports } - { role: open-ports, tags: open-ports }
- { role: swap-file, tags: swap-file } - { role: swap-file, tags: swap-file }
- { role: nim-waku, tags: nim-waku } - { role: nim-waku, tags: nim-waku }
- name: Configure Waku Storage DB Nodes
hosts: store-db
roles:
- { role: open-ports, tags: open-ports }
- { role: swap-file, tags: swap-file }
- { role: infra-role-postgres-ha, tags: postgres-ha }

View File

@ -25,6 +25,9 @@
- name: nim-waku - name: nim-waku
src: git@github.com:status-im/infra-role-nim-waku.git src: git@github.com:status-im/infra-role-nim-waku.git
# TODO: update hash and find a working image to support topic argument change version: 5a96779773b1b5e1d34dd3be6e1a280151184447
version: 8044c33ffb92b3ee73cba677a090330ff638b70c scm: git
- name: infra-role-postgres-ha
src: git@github.com:status-im/infra-role-postgres-ha.git
scm: git scm: git