Skip to content

Chapter 9, lamp-infrastructure : Local Vagrant config has no MySQL master replication set up #461

@MrPOC

Description

@MrPOC

In Chapter 9, when running the lamp-infrastructure on Vagrant VMs, there is no MySQL server set as "master" because we never define the mysql_replication_role variable. You can fix this by setting them in the inventory file, next to the hosts IP address in lamp_db group, but maybe there is a more proper way of doing this.
Here is what I did in my inventory file:

# [...] previous groups defined here
[lamp_db]
192.168.2.5 mysql_replication_role=master
192.168.2.6 mysql_replication_role=slave
# [...] other groups defined here

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions