Jiri Broulik | 4272056 | 2017-10-20 14:42:32 +0200 | [diff] [blame^] | 1 | /** |
| 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 | |
| 12 | common = new com.mirantis.mk.Common() |
| 13 | salt = new com.mirantis.mk.Salt() |
| 14 | orchestrate = new com.mirantis.mk.Orchestrate() |
| 15 | def python = new com.mirantis.mk.Python() |
| 16 | |
| 17 | def pepperEnv = "pepperEnv" |
| 18 | |
| 19 | node("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 | } |