Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame^] | 1 | # |
| 2 | # Jobs to update packages on given Salt master environment |
| 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-package: |
| 11 | type: workflow-scm |
| 12 | concurrent: true |
| 13 | display_name: "Deploy - update system package(s)" |
| 14 | scm: |
| 15 | type: git |
| 16 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 17 | credentials: "gerrit" |
| 18 | script: update-package.groovy |
| 19 | param: |
| 20 | SALT_MASTER_URL: |
| 21 | type: string |
| 22 | default: "${_param:jenkins_salt_api_url}" |
| 23 | SALT_MASTER_CREDENTIALS: |
| 24 | type: string |
| 25 | default: "salt" |
| 26 | TARGET_SERVERS: |
| 27 | type: string |
| 28 | default: "*" |
| 29 | description: Salt compound target to match nodes to be updated [*, G@osfamily:debian]. |
| 30 | TARGET_PACKAGES: |
| 31 | type: string |
| 32 | description: Space delimited list of packages to be updates [package1=version package2=version], empty string means all updating all packages to the latest version. |
| 33 | TARGET_SUBSET_TEST: |
| 34 | type: string |
| 35 | description: Number of nodes to list package updates, empty string means all targetted nodes. |
| 36 | TARGET_SUBSET_LIVE: |
| 37 | type: string |
| 38 | default: '1' |
| 39 | description: Number of selected noded to live apply selected package update. |
| 40 | TARGET_BATCH_LIVE: |
| 41 | type: string |
| 42 | description: Batch size for the complete live package update on all nodes, empty string means apply to all targetted nodes. |