diff --git a/defaults/main.yml b/defaults/main.yml index 997437b1..09d68846 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -26,6 +26,7 @@ galera_force_bootstrap: false galera_wsrep_node_name: "{{ inventory_hostname }}" galera_cluster_name: openstack_galera_cluster galera_server_bind_address: "{{ openstack_service_bind_address | default('0.0.0.0') }}" +galera_server_proxy_protocol_networks: "" # The galera server-id should be set on all cluster nodes to ensure # that replication is handled correctly and the error diff --git a/templates/my.cnf.j2 b/templates/my.cnf.j2 index aa02ace4..c58a038c 100644 --- a/templates/my.cnf.j2 +++ b/templates/my.cnf.j2 @@ -32,6 +32,10 @@ tmpdir = {{ galera_tmp_dir }} ignore_db_dirs = {{ galera_ignore_db_dirs | join(',') }} bind-address = {{ galera_server_bind_address }} +{% if galera_server_proxy_protocol_networks %} +proxy-protocol-networks = {{ galera_server_proxy_protocol_networks }} +{% endif %} + {% if galera_server_id is defined %} server-id = {{ galera_server_id }} {% endif %}