- Requires Ansible 1.5
- Expects Debian Wheezy
This playbook configures a Drupal cluster. Hosts are configured in the 'hosts' file, grouped by purpose.
- [lbservers] for load balancers
- [webservers] for application servers
- [dbservers] for database servers
ansible-playbook site.yml --check
ansible-playbook site.yml
ansible -i hosts -a "apt-get install -y -q mc" webservers
Login to db02 and issue
# echo "STOP SLAVE; RESET MASTER;" | mysql
Then. edit 'settings.php' to point the database to db02
- automatic load balancer failover
- automatic mysql failover
- Drupal master/slave configuration with autoslave module