Skip to content

Commit

Permalink
remove example ip address from cluster_vip.
Browse files Browse the repository at this point in the history
In variable "cluster_vip" must specify the ip address for your subnet. 
If you leave the ip address that was specified as an example, then you may receive an error when trying to check the availability of the cluster ip address during deployment:
FAILED! => {"changed": false, "elapsed": 61, "msg": "Timeout when waiting for 10.128.64.145:22"}

The cluster ip address (VIP) is optional, you can leave the cluster_vip variable empty, or specify the ip address for your subnet. This VIP will be used for client access to databases in the cluster.
  • Loading branch information
vitabaks committed Apr 30, 2020
1 parent a6a2ab0 commit a36e4dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ proxy_env: {}
# -------------------------------------------

# Cluster variables
cluster_vip: "10.128.64.145" # for client access to databases in the cluster (optional)
cluster_vip: "" # for client access to databases in the cluster (optional)
vip_interface: "{{ ansible_default_ipv4.interface }}" # interface name (ex. "ens32")

patroni_cluster_name: "postgres-cluster" # specify the cluster name
Expand All @@ -27,10 +27,10 @@ synchronous_mode_strict: false # if 'true' then block all client writes to the

# Load Balancing
with_haproxy_load_balancing: false # or 'true' if you want to install and configure the load-balancing
# if with_haproxy_load_balancing: true
# if with_haproxy_load_balancing: true and cluster_vip is specified
keepalived_virtual_router_id: "133" # specify a unique virtual_router_id

# vip-manager (if with_haproxy_load_balancing: false)
# vip-manager (if cluster_vip is specified and with_haproxy_load_balancing: false)
vip_manager_version: "0.6" # version to install
vip_manager_conf_dir: "/etc/patroni"
vip_manager_conf_file: "vip-manager.yml"
Expand Down

0 comments on commit a36e4dd

Please sign in to comment.