Skip to content

Commit

Permalink
Set inventory file content to default
Browse files Browse the repository at this point in the history
  • Loading branch information
klention committed Dec 21, 2024
1 parent da78fd7 commit 3ba5e76
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions automation/inventory
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@

# if dcs_exists: false and dcs_type: "etcd"
[etcd_cluster] # recommendation: 3, or 5-7 nodes
10.16.16.209
10.16.16.210
10.16.16.211
#10.128.64.140
#10.128.64.142
#10.128.64.143

# if dcs_exists: false and dcs_type: "consul"
[consul_instances] # recommendation: 3 or 5-7 nodes
10.16.16.209 consul_node_role=server consul_bootstrap_expect=true consul_datacenter=dc1
10.16.16.210 consul_node_role=server consul_bootstrap_expect=true consul_datacenter=dc1
10.16.16.211 consul_node_role=server consul_bootstrap_expect=true consul_datacenter=dc1
#10.128.64.140 consul_node_role=server consul_bootstrap_expect=true consul_datacenter=dc1
#10.128.64.142 consul_node_role=server consul_bootstrap_expect=true consul_datacenter=dc1
#10.128.64.143 consul_node_role=server consul_bootstrap_expect=true consul_datacenter=dc1
#10.128.64.144 consul_node_role=client consul_datacenter=dc2
#10.128.64.145 consul_node_role=client consul_datacenter=dc2

# if with_haproxy_load_balancing: true
[balancers]
10.16.16.209 # balancer_tags="datacenter=dc1"
10.16.16.210 # balancer_tags="datacenter=dc1"
10.16.16.211 # balancer_tags="datacenter=dc1"
#10.128.64.140 # balancer_tags="datacenter=dc1"
#10.128.64.142 # balancer_tags="datacenter=dc1"
#10.128.64.143 # balancer_tags="datacenter=dc1"
#10.128.64.144 balancer_tags="datacenter=dc2"
#10.128.64.145 balancer_tags="datacenter=dc2" new_node=true

# PostgreSQL nodes
[master]
10.16.16.209 hostname=pgnode01 postgresql_exists=false # patroni_tags="datacenter=dc1"
#10.128.64.140 hostname=pgnode01 postgresql_exists=false # patroni_tags="datacenter=dc1"

[replica]
10.16.16.210 hostname=pgnode02 postgresql_exists=false # patroni_tags="datacenter=dc1"
10.16.16.211 hostname=pgnode03 postgresql_exists=false # patroni_tags="datacenter=dc1"
#10.128.64.142 hostname=pgnode02 postgresql_exists=false # patroni_tags="datacenter=dc1"
#10.128.64.143 hostname=pgnode03 postgresql_exists=false # patroni_tags="datacenter=dc1"
#10.128.64.144 hostname=pgnode04 postgresql_exists=false patroni_tags="datacenter=dc2"
#10.128.64.145 hostname=pgnode04 postgresql_exists=false patroni_tags="datacenter=dc2" new_node=true

Expand All @@ -60,4 +60,4 @@ ansible_ssh_port='22'
#ansible_user='root'
#ansible_ssh_pass='secretpassword' # "sshpass" package is required for use "ansible_ssh_pass"
#ansible_ssh_private_key_file=
#ansible_python_interpreter='/usr/bin/python3'
#ansible_python_interpreter='/usr/bin/python3'

0 comments on commit 3ba5e76

Please sign in to comment.