The floating point interface is not necessarily the main one.
This commit is contained in:
parent
bacc2c480a
commit
7eb1a0a55e
|
@ -26,6 +26,7 @@ pgpool_listen_addresses: 'localhost'
|
||||||
pgpool_port: 5433
|
pgpool_port: 5433
|
||||||
pgpool_listen_backlog_multiplier: 2
|
pgpool_listen_backlog_multiplier: 2
|
||||||
pgpool_pcp_user: admin
|
pgpool_pcp_user: admin
|
||||||
|
pgpool_floating_ip_interface: '{{ ansible_default_ipv4.alias }}'
|
||||||
# Define pcp_pwd in a vault file
|
# Define pcp_pwd in a vault file
|
||||||
pgpool_pcp_listen_addresses: '*'
|
pgpool_pcp_listen_addresses: '*'
|
||||||
pgpool_pcp_port: 9898
|
pgpool_pcp_port: 9898
|
||||||
|
|
|
@ -479,10 +479,10 @@ delegate_IP = '{{ pgpool_virtual_ip }}'
|
||||||
if_cmd_path = '/sbin'
|
if_cmd_path = '/sbin'
|
||||||
# ifconfig command path
|
# ifconfig command path
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
if_up_cmd = 'ip_script addr add {{ pgpool_virtual_ip }}/{{ pgpool_virtual_netmask }} dev {{ ansible_default_ipv4.alias }}'
|
if_up_cmd = 'ip_script addr add {{ pgpool_virtual_ip }}/{{ pgpool_virtual_netmask }} dev {{ pgpool_floating_ip_interface }}'
|
||||||
# startup delegate IP command
|
# startup delegate IP command
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
if_down_cmd = 'ip_script addr del {{ pgpool_virtual_ip }}/{{ pgpool_virtual_netmask }} dev {{ ansible_default_ipv4.alias }}'
|
if_down_cmd = 'ip_script addr del {{ pgpool_virtual_ip }}/{{ pgpool_virtual_netmask }} dev {{ pgpool_floating_ip_interface }}'
|
||||||
# shutdown delegate IP command
|
# shutdown delegate IP command
|
||||||
# (change requires restart)
|
# (change requires restart)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue