Only add replication config if replication is setup.

This commit is contained in:
Jeff Geerling 2015-01-07 10:41:58 -06:00
parent 420894477e
commit 2c5843f164

View file

@ -9,6 +9,7 @@ bind-address = {{ mysql_bind_address }}
datadir = {{ mysql_datadir }}
socket = {{ mysql_socket }}
{% if mysql_replication_master %}
# Replication
server-id = {{ mysql_server_id }}
@ -32,6 +33,7 @@ read_only
relay-log = relay-bin
relay-log-index = relay-bin.index
{% endif %}
{% endif %}
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links = 0