Skip to content

Commit dc532d8

Browse files
authored
Merge pull request geerlingguy#281 from Maelstromeous/patch-2
Added clarity on what mysql_replication_master does and caveats
2 parents 2dbced9 + 0bdd54d commit dc532d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ The rest of the settings in `defaults/main.yml` control MySQL's memory usage and
122122

123123
Replication settings. Set `mysql_server_id` and `mysql_replication_role` by server (e.g. the master would be ID `1`, with the `mysql_replication_role` of `master`, and the slave would be ID `2`, with the `mysql_replication_role` of `slave`). The `mysql_replication_user` uses the same keys as `mysql_users`, and is created on master servers, and used to replicate on all the slaves.
124124

125+
`mysql_replication_master` needs to resolve to an IP or a hostname which is accessable to the Slaves (this could be a `/etc/hosts` injection or some other means), otherwise the slaves cannot communicate to the master.
126+
125127
### Later versions of MySQL on CentOS 7
126128

127129
If you want to install MySQL from the official repository instead of installing the system default MariaDB equivalents, you can add the following `pre_tasks` task in your playbook:

0 commit comments

Comments
 (0)