blob: 9beabfb4da8e61d1c7fc09db8d880d1316f02090 [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
13 display_name: "Deploy - update service(s) config"
14 scm:
15 type: git
16 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
17 credentials: "gerrit"
18 script: change-config.groovy
19 param:
20 SALT_MASTER_URL:
21 type: string
22 default: "${_param:jenkins_salt_api_url}"
23 description: Full Salt API address [https://10.10.10.1:8000].
24 SALT_MASTER_CREDENTIALS:
25 type: string
26 default: "salt"
27 description: Credentials to the Salt API.
28 TARGET_SERVERS:
29 type: string
30 default: "*"
31 description: Salt compound target to match nodes to be updated [*, G@osfamily:debian].
32 TARGET_STATES:
33 type: string
34 description: Config changes to be applied, empty string means running highstate [linux, linux,openssh, salt.minion.grains].
35 TARGET_SUBSET_TEST:
36 type: string
37 description: Number of nodes to test config changes, empty string means all targetted nodes.
38 TARGET_SUBSET_LIVE:
39 type: string
40 default: '1'
41 description: Number of selected noded to live apply selected config changes.
42 TARGET_BATCH_LIVE:
43 type: string
44 description: Batch size for the complete live config changes on all nodes, empty string means apply to all targetted nodes.
45