Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 1 | # |
| 2 | # Jobs to run given states on given Salt master environment's |
| 3 | # |
| 4 | parameters: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 5 | jenkins: |
| 6 | client: |
| 7 | job: |
| 8 | deploy-update-service-config: |
| 9 | type: workflow-scm |
| 10 | concurrent: true |
Alexander Evseev | 4589d71 | 2018-08-03 12:36:15 +0200 | [diff] [blame] | 11 | discard: |
| 12 | build: |
| 13 | keep_num: 10 |
| 14 | artifact: |
| 15 | keep_num: 10 |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 16 | display_name: "Deploy - update service(s) config" |
| 17 | scm: |
| 18 | type: git |
| 19 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 20 | branch: "${_param:jenkins_pipelines_branch}" |
Sergey Galkin | 4cf87b9 | 2019-06-19 17:53:07 +0400 | [diff] [blame] | 21 | credentials: ${_param:jenkins_gerrit_credentials} |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 22 | script: change-config.groovy |
| 23 | param: |
| 24 | SALT_MASTER_URL: |
| 25 | type: string |
| 26 | default: "${_param:jenkins_salt_api_url}" |
| 27 | description: Full Salt API address [https://10.10.10.1:8000]. |
| 28 | SALT_MASTER_CREDENTIALS: |
| 29 | type: string |
| 30 | default: "salt" |
| 31 | description: Credentials to the Salt API. |
| 32 | TARGET_SERVERS: |
| 33 | type: string |
| 34 | default: "*" |
| 35 | description: Salt compound target to match nodes to be updated [*, G@osfamily:debian]. |
| 36 | TARGET_STATES: |
| 37 | type: string |
| 38 | description: Config changes to be applied, empty string means running highstate [linux, linux,openssh, salt.minion.grains]. |
| 39 | TARGET_SUBSET_TEST: |
| 40 | type: string |
| 41 | description: Number of nodes to test config changes, empty string means all targetted nodes. |
| 42 | TARGET_SUBSET_LIVE: |
| 43 | type: string |
| 44 | default: '1' |
| 45 | description: Number of selected noded to live apply selected config changes. |
| 46 | TARGET_BATCH_LIVE: |
| 47 | type: string |
| 48 | description: Batch size for the complete live config changes on all nodes, empty string means apply to all targetted nodes. |
Sam Stoelinga | d4c9d56 | 2017-09-14 18:21:02 -0700 | [diff] [blame] | 49 | PULL_MODEL: |
| 50 | type: boolean |
| 51 | default: 'true' |
| 52 | description: Pull the latest reclass cluster model before applying the states. |