Merge "Add haproxy_endpoints role to Galera"
This commit is contained in:
commit
393b52a365
@ -206,3 +206,7 @@
|
|||||||
scm: git
|
scm: git
|
||||||
src: https://git.openstack.org/openstack/openstack-ansible-os_tacker
|
src: https://git.openstack.org/openstack/openstack-ansible-os_tacker
|
||||||
version: master
|
version: master
|
||||||
|
- name: haproxy_endpoints
|
||||||
|
scm: git
|
||||||
|
src: https://github.com/logan2211/ansible-haproxy-endpoints
|
||||||
|
version: master
|
||||||
|
@ -26,3 +26,7 @@ galera_container_bind_mounts:
|
|||||||
# Disable PrivateDevices for MariaDB on CentOS 7
|
# Disable PrivateDevices for MariaDB on CentOS 7
|
||||||
# See https://bugs.launchpad.net/openstack-ansible/+bug/1697531 for details.
|
# See https://bugs.launchpad.net/openstack-ansible/+bug/1697531 for details.
|
||||||
galera_disable_privatedevices: "{{ ((properties.is_metal | default(false)) | bool) | ternary('false', 'true') }}"
|
galera_disable_privatedevices: "{{ ((properties.is_metal | default(false)) | bool) | ternary('false', 'true') }}"
|
||||||
|
|
||||||
|
# Galera sessions are long lived, so if we do endpoint maintenance we will
|
||||||
|
# force kill the sessions to force a failover to the active endpoint.
|
||||||
|
haproxy_shutdown_sessions: yes
|
||||||
|
@ -50,7 +50,15 @@
|
|||||||
max_fail_percentage: 20
|
max_fail_percentage: 20
|
||||||
user: root
|
user: root
|
||||||
roles:
|
roles:
|
||||||
|
- role: haproxy_endpoints
|
||||||
|
haproxy_state: disabled
|
||||||
|
static: no
|
||||||
|
when: "{{ groups['haproxy'] | default([]) | length > 0 }}"
|
||||||
- role: "galera_server"
|
- role: "galera_server"
|
||||||
|
- role: haproxy_endpoints
|
||||||
|
haproxy_state: enabled
|
||||||
|
static: no
|
||||||
|
when: "{{ groups['haproxy'] | default([]) | length > 0 }}"
|
||||||
- role: "rsyslog_client"
|
- role: "rsyslog_client"
|
||||||
rsyslog_client_log_rotate_file: galera_log_rotate
|
rsyslog_client_log_rotate_file: galera_log_rotate
|
||||||
rsyslog_client_log_dir: "/var/log/mysql_logs"
|
rsyslog_client_log_dir: "/var/log/mysql_logs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user