store-db: setup hosts and connection
This commit is contained in:
parent
001eaab79b
commit
a8c4c0395a
|
@ -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
|
||||||
|
|
|
@ -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 }
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue