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: |
| 5 | _param: |
| 6 | jenkins_salt_api_url: "http://${_param:salt_master_host}:6969" |
| 7 | jenkins: |
| 8 | client: |
| 9 | job: |
| 10 | deploy-update-service-config: |
| 11 | type: workflow-scm |
| 12 | concurrent: true |
| 13 | display_name: "Deploy - update service(s) config" |
| 14 | scm: |
| 15 | type: git |
| 16 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 17 | branch: "${_param:jenkins_pipelines_branch}" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 18 | credentials: "gerrit" |
| 19 | script: change-config.groovy |
| 20 | param: |
| 21 | SALT_MASTER_URL: |
| 22 | type: string |
| 23 | default: "${_param:jenkins_salt_api_url}" |
| 24 | description: Full Salt API address [https://10.10.10.1:8000]. |
| 25 | SALT_MASTER_CREDENTIALS: |
| 26 | type: string |
| 27 | default: "salt" |
| 28 | description: Credentials to the Salt API. |
| 29 | TARGET_SERVERS: |
| 30 | type: string |
| 31 | default: "*" |
| 32 | description: Salt compound target to match nodes to be updated [*, G@osfamily:debian]. |
| 33 | TARGET_STATES: |
| 34 | type: string |
| 35 | description: Config changes to be applied, empty string means running highstate [linux, linux,openssh, salt.minion.grains]. |
| 36 | TARGET_SUBSET_TEST: |
| 37 | type: string |
| 38 | description: Number of nodes to test config changes, empty string means all targetted nodes. |
| 39 | TARGET_SUBSET_LIVE: |
| 40 | type: string |
| 41 | default: '1' |
| 42 | description: Number of selected noded to live apply selected config changes. |
| 43 | TARGET_BATCH_LIVE: |
| 44 | type: string |
| 45 | 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] | 46 | PULL_MODEL: |
| 47 | type: boolean |
| 48 | default: 'true' |
| 49 | description: Pull the latest reclass cluster model before applying the states. |