blob: 47ec3215dfc6d8636d903ddcb9d6473548aeb89f [file] [log] [blame]
Filip Pytloun260a9502017-03-16 12:47:22 +01001#
2# Jobs to run given states on given Salt master environment's
3#
4parameters:
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
Alexander Evseev4589d712018-08-03 12:36:15 +020013 discard:
14 build:
15 keep_num: 10
16 artifact:
17 keep_num: 10
Filip Pytloun260a9502017-03-16 12:47:22 +010018 display_name: "Deploy - update service(s) config"
19 scm:
20 type: git
21 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010022 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun260a9502017-03-16 12:47:22 +010023 credentials: "gerrit"
24 script: change-config.groovy
25 param:
26 SALT_MASTER_URL:
27 type: string
28 default: "${_param:jenkins_salt_api_url}"
29 description: Full Salt API address [https://10.10.10.1:8000].
30 SALT_MASTER_CREDENTIALS:
31 type: string
32 default: "salt"
33 description: Credentials to the Salt API.
34 TARGET_SERVERS:
35 type: string
36 default: "*"
37 description: Salt compound target to match nodes to be updated [*, G@osfamily:debian].
38 TARGET_STATES:
39 type: string
40 description: Config changes to be applied, empty string means running highstate [linux, linux,openssh, salt.minion.grains].
41 TARGET_SUBSET_TEST:
42 type: string
43 description: Number of nodes to test config changes, empty string means all targetted nodes.
44 TARGET_SUBSET_LIVE:
45 type: string
46 default: '1'
47 description: Number of selected noded to live apply selected config changes.
48 TARGET_BATCH_LIVE:
49 type: string
50 description: Batch size for the complete live config changes on all nodes, empty string means apply to all targetted nodes.
Sam Stoelingad4c9d562017-09-14 18:21:02 -070051 PULL_MODEL:
52 type: boolean
53 default: 'true'
54 description: Pull the latest reclass cluster model before applying the states.