Add Designate to Orchestrate.
Change-Id: Ibd03b066c915169a4f7665e4e53b7c4ed0221c5b
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index aa241bd..7df99b8 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -235,9 +235,21 @@
// Install ironic service
if (salt.testTarget(master, 'I@ironic:api')) {
- salt.enforceState(master, 'I@ironic:api and ctl01*', 'ironic.api', true)
+ salt.enforceState(master, 'I@ironic:api and *01*', 'ironic.api', true)
salt.enforceState(master, 'I@ironic:api', 'ironic.api', true)
}
+
+ // Install designate service
+ if (salt.testTarget(master, 'I@designate:server:enabled')) {
+ if (salt.testTarget(master, 'I@designate:server:backend:bind9')) {
+ salt.enforceState(master, 'I@bind:server', 'bind.server', true)
+ }
+ if (salt.testTarget(master, 'I@designate:server:backend:pdns4')) {
+ salt.enforceState(master, 'I@powerdns:server', 'powerdns.server', true)
+ }
+ salt.enforceState(master, 'I@designate:server and *01*', 'designate.server', true)
+ salt.enforceState(master, 'I@designate:server', 'designate.server', true)
+ }
}