diff --git a/templates/my.cnf.j2 b/templates/my.cnf.j2 index 1e77525..ac05e40 100644 --- a/templates/my.cnf.j2 +++ b/templates/my.cnf.j2 @@ -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