From b7dce437563a17a5d90eb1a003242e573bcf9f98 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Fri, 12 Feb 2016 11:10:54 -0500 Subject: [PATCH] Made a new host group for the first db in the cluster --- hosts | 3 +++ playbooks/galeradb.yml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts b/hosts index fa92738..4fa8a20 100644 --- a/hosts +++ b/hosts @@ -9,6 +9,9 @@ db1-hostname db2-hostname db3-hostname +[db_first_cluster_node] +db1-hostname + [proxy] haproxy-hostname diff --git a/playbooks/galeradb.yml b/playbooks/galeradb.yml index 0bf2e80..1d06a5e 100644 --- a/playbooks/galeradb.yml +++ b/playbooks/galeradb.yml @@ -14,13 +14,13 @@ - include: ../roles/db/tasks/install.yml - name: Start and create cluser on first db node - hosts: db[0] + hosts: db_first_cluster_node user: root tasks: - include: ../roles/db/tasks/startcluster.yml - name: Start mysql on other nodes - hosts: db[1-2] + hosts: db user: root tasks: - include: ../roles/db/tasks/startmysql.yml