Re-organized all files and added a Vagrantfile

This commit is contained in:
2016-02-02 11:40:47 -05:00
parent dd4fd53ce7
commit 8a55e9f946
19 changed files with 157 additions and 96 deletions

26
playbooks/galeradb.yml Normal file
View File

@@ -0,0 +1,26 @@
---
# This playbook deploys a galera cluster
- name: Apply common configuration to all nodes
hosts: db
user: root
tasks:
- include: ../roles/common/tasks/main.yml
- name: Install galera and mariadb on all db nodes
hosts: db
user: root
tasks:
- include: ../roles/db/tasks/install.yml
- name: Start and create cluser on first db node
hosts: db[0]
user: root
tasks:
- include: ../roles/db/tasks/startcluster.yml
- name: Start mysql on other nodes
hosts: db[1-2]
user: root
tasks:
- include: ../roles/db/tasks/startmysql.yml