add classes for basic ceph installation
Change-Id: I24fa436a11cbd0e8b5acb9c5c718534fea11bf15
diff --git a/src/com/mirantis/mk/Orchestrate.groovy b/src/com/mirantis/mk/Orchestrate.groovy
index fa3a55c..22711f7 100644
--- a/src/com/mirantis/mk/Orchestrate.groovy
+++ b/src/com/mirantis/mk/Orchestrate.groovy
@@ -444,7 +444,6 @@
salt.cmdRun(master, 'I@docker:swarm:role:master', 'docker node ls', true)
}
-
def installStacklight(master) {
def common = new com.mirantis.mk.Common()
def salt = new com.mirantis.mk.Salt()
@@ -627,3 +626,22 @@
throw new Exception("Missing stacklight_vip")
}
}
+
+
+//
+// Ceph
+//
+
+def installCephMon(master, target='I@ceph:mon') {
+ def salt = new com.mirantis.mk.Salt()
+
+ // install Ceph MOns
+ salt.enforceState(master, target, 'ceph.mon', true)
+}
+
+def installCephOsd(master, target='I@ceph:osd') {
+ def salt = new com.mirantis.mk.Salt()
+
+ // install Ceph OSDs
+ salt.enforceState(master, target, 'ceph.osd', true)
+}