Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MrPOC opened this issue Feb 11, 2022 · 5 comments
Labels

Comments

@MrPOC
Copy link

MrPOC commented Feb 11, 2022

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
@geerlingguy
Copy link
Owner

They should be set correctly here...

https://github.com/geerlingguy/ansible-for-devops/blob/master/lamp-infrastructure/inventories/vagrant/inventory#L11-L13

Is it different in the book?

@MrPOC
Copy link
Author

MrPOC commented Feb 11, 2022

Yes I can confirm this is not the book as showed in this screenshot: https://nextcloud.djpoc.ovh/s/cKbcoPcpyyZYEbe

@geerlingguy
Copy link
Owner

Ah, thanks. I'll have to get that fixed!

@geerlingguy
Copy link
Owner

This is fixed in the manuscript and will be in the next update to the book. Thanks!

@MrPOC
Copy link
Author

MrPOC commented Feb 12, 2022

Thank you very much !
P.S. : When you have the time (I get that you're very busy, no problem) could you look at the issues others and I posted in the last couple days ? Thanks for your valuable time !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants