Integrate manila into orachestrate pipeline
Change-Id: Ieb7976dae0e624e0d60a4b34ab0088e3251bc71a
Related-Prod: PROD-18010
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index a0a2907..080c0b1 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -276,6 +276,15 @@
salt.enforceState(master, 'I@ironic:api', 'ironic.api')
}
+ // Install manila service
+ if (salt.testTarget(master, 'I@manila:api')) {
+ salt.enforceState(master, 'I@manila:api and *01*', 'manila.api')
+ salt.enforceState(master, 'I@manila:api', 'manila.api')
+ }
+ if (salt.testTarget(master, 'I@manila:scheduler')) {
+ salt.enforceState(master, 'I@manila:scheduler', 'manila.scheduler')
+ }
+
// Install designate service
if (salt.testTarget(master, 'I@designate:server:enabled')) {
if (salt.testTarget(master, 'I@designate:server:backend:bind9')) {
@@ -345,6 +354,20 @@
}
}
+def installManilaShare(master){
+ def salt = new com.mirantis.mk.Salt()
+
+ if (salt.testTarget(master, 'I@manila:share')) {
+ salt.enforceState(master, 'I@manila:share', 'manila.share')
+ }
+ if (salt.testTarget(master, 'I@manila:data')) {
+ salt.enforceState(master, 'I@manila:data', 'manila.data')
+ }
+
+ if (salt.testTarget(master, 'I@manila:client')) {
+ salt.enforceState(master, 'I@manila:client', 'manila.client')
+ }
+}
def installOpenstackNetwork(master, physical = "false") {