Merge remote-tracking branch 'upstream/master' into stacklight
diff --git a/galera/meta/salt.yml b/galera/meta/salt.yml
new file mode 100644
index 0000000..15ebaf4
--- /dev/null
+++ b/galera/meta/salt.yml
@@ -0,0 +1,6 @@
+orchestrate:
+ master:
+ priority: 140
+ slave:
+ priority: 150
+
diff --git a/galera/orchestrate/init.sls b/galera/orchestrate/init.sls
deleted file mode 100644
index e78cedd..0000000
--- a/galera/orchestrate/init.sls
+++ /dev/null
@@ -1,14 +0,0 @@
-galera_master:
- salt.state:
- - tgt: 'roles:galera.master'
- - tgt_type: grain
- - sls: galera
-
-galera_slaves:
- salt.state:
- - tgt: 'roles:galera.slave'
- - tgt_type: grain
- - sls: galera
- - require:
- - salt: galera_master
-
diff --git a/galera/orchestrate/master.sls b/galera/orchestrate/master.sls
new file mode 100644
index 0000000..ba70c7f
--- /dev/null
+++ b/galera/orchestrate/master.sls
@@ -0,0 +1,18 @@
+galera.master:
+ salt.state:
+ - tgt: 'galera:master'
+ - tgt_type: pillar
+ - queue: True
+ - sls: galera.master
+ - batch: 1
+
+galera.server:
+ salt.state:
+ - tgt: 'galera:master'
+ - tgt_type: pillar
+ - queue: True
+ - sls: galera.server
+ - batch: 1
+ - require:
+ - salt: galera.master
+
diff --git a/galera/orchestrate/slave.sls b/galera/orchestrate/slave.sls
new file mode 100644
index 0000000..36ba5d6
--- /dev/null
+++ b/galera/orchestrate/slave.sls
@@ -0,0 +1,10 @@
+galera.slave:
+ salt.state:
+ - tgt: 'galera:slave'
+ - tgt_type: pillar
+ - queue: True
+ - sls: galera.slave
+ - batch: 1
+ - require:
+ - salt: galera.server
+