blob: fb0eceb08f9d6fa365eedfadccbc9d08d5c9123c [file] [log] [blame]
Jiri Broulik42720562017-10-20 14:42:32 +02001/**
2 *
3 * Add OSD host to existing cluster
4 *
5 * Requred parameters:
6 * SALT_MASTER_URL URL of Salt master
7 * SALT_MASTER_CREDENTIALS Credentials to the Salt API
8 * HOST Host (minion id) to be added
9 *
10 */
11
12common = new com.mirantis.mk.Common()
13salt = new com.mirantis.mk.Salt()
14orchestrate = new com.mirantis.mk.Orchestrate()
15def python = new com.mirantis.mk.Python()
16
17def pepperEnv = "pepperEnv"
18
19node("python") {
20
21 // create connection to salt master
22 python.setupPepperVirtualenv(pepperEnv, SALT_MASTER_URL, SALT_MASTER_CREDENTIALS)
23
24 // run basic states
25 stage('Install infra') {
26 orchestrate.installFoundationInfraOnTarget(pepperEnv, HOST)
27 }
28 // Install Ceph
29 stage('Install Ceph') {
30 orchestrate.installCephOsd(pepperEnv, HOST)
31 }
32}