blob: aef20ce7e9df8528ce19441d0e901463c805a1b6 [file] [log] [blame]
Jiri Broulikad0a9b42018-03-23 11:55:16 +01001#
2# Jobs to update cloud packages on given Salt master environment
3#
4parameters:
5 _param:
6 jenkins_salt_api_url: "http://${_param:salt_master_host}:6969"
7 jenkins:
8 client:
9 job:
10 deploy-update-cloud:
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
Jiri Broulikad0a9b42018-03-23 11:55:16 +010018 display_name: "Deploy - update cloud"
19 scm:
20 type: git
21 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
22 branch: "${_param:jenkins_pipelines_branch}"
23 credentials: "gerrit"
24 script: cloud-update.groovy
25 param:
26 SALT_MASTER_URL:
27 type: string
28 default: "${_param:jenkins_salt_api_url}"
29 SALT_MASTER_CREDENTIALS:
30 type: string
31 default: "salt"
32 SNAPSHOT_NAME:
33 type: string
34 default: "updateSnapshot1"
35 description: "Live snapshot name"
36 CFG_NODE_PROVIDER:
37 type: string
38 default: ""
39 description: "Physical machine hosting Salt-Master VM (ex. kvm01*)"
40 INTERACTIVE:
41 type: boolean
42 default: 'false'
43 description: "Ask interactive questions during pipeline run"
44 PER_NODE:
45 type: boolean
46 default: 'true'
47 description: "Target nodes will be managed one by one"
48 ROLLBACK_BY_REDEPLOY:
49 type: boolean
50 default: 'false'
51 description: "Omit taking live snapshots. Rollback is planned to be done by redeployment"
52 STOP_SERVICES:
53 type: boolean
54 default: 'true'
55 description: "Stop API services before update"
Jiri Broulikd9b01742018-04-05 13:40:31 +020056 TARGET_KERNEL_UPDATES:
57 type: string
Mykyta Karpinfe803d42018-12-04 16:43:59 +020058 default: "cfg,msg,dbs"
59 description: "Comma separated list of nodes to update kernel if newer version is available (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid,kvm,osd)"
Jiri Broulikd9b01742018-04-05 13:40:31 +020060 TARGET_REBOOT:
61 type: string
Mykyta Karpinfe803d42018-12-04 16:43:59 +020062 default: "cfg,msg,dbs"
63 description: "Comma separated list of nodes to reboot after update or physical machine rollback (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid,kvm,osd)"
Jiri Broulikd9b01742018-04-05 13:40:31 +020064 TARGET_HIGHSTATE:
65 type: string
Mykyta Karpinfe803d42018-12-04 16:43:59 +020066 default: "cfg,msg,dbs"
67 description: "Comma separated list of nodes to run Salt Highstate on after update or physical machine rollback (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid,kvm,osd)"
Jiri Broulik64b34a82018-03-23 17:37:07 +010068 TARGET_UPDATES:
69 type: string
Mykyta Karpinfe803d42018-12-04 16:43:59 +020070 default: "cfg,msg,dbs"
71 description: "Comma separated list of nodes to update (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid,kvm,osd)"
Jiri Broulik64b34a82018-03-23 17:37:07 +010072 TARGET_ROLLBACKS:
73 type: string
74 default: ""
Mykyta Karpinfe803d42018-12-04 16:43:59 +020075 description: "Comma separated list of nodes to rollback (Valid values are msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,kvm,osd)"
Jiri Broulik0011a172018-03-29 13:33:37 +020076 TARGET_SNAPSHOT_MERGES:
Jiri Broulik64b34a82018-03-23 17:37:07 +010077 type: string
78 default: ""
Mykyta Karpinfe803d42018-12-04 16:43:59 +020079 description: "Comma separated list of nodes to merge live snapshot for (Valid values are cfg,msg,dbs,log,mon,mtr,ntw,nal,cmn,rgw,cid)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +010080 MSG_TARGET:
81 type: string
82 default: "msg*"
83 description: "Salt targeted MSG nodes (ex. msg*)"
84 DBS_TARGET:
85 type: string
86 default: "dbs*"
87 description: "Salt targeted DBS nodes (ex. dbs*)"
88 LOG_TARGET:
89 type: string
90 default: "log*"
91 description: "Salt targeted LOG nodes (ex. log*)"
92 MON_TARGET:
93 type: string
94 default: "mon*"
95 description: "Salt targeted MON nodes (ex. mon*)"
96 MTR_TARGET:
97 type: string
98 default: "mtr*"
99 description: "Salt targeted MTR nodes (ex. mtr*)"
100 NTW_TARGET:
101 type: string
102 default: "ntw*"
103 description: "Salt targeted NTW nodes (ex. ntw*)"
104 NAL_TARGET:
105 type: string
106 default: "nal*"
107 description: "Salt targeted NAL nodes (ex. nal*)"
108 CMN_TARGET:
109 type: string
110 default: "cmn*"
111 description: "Salt targeted CMN nodes (ex. cmn*)"
112 RGW_TARGET:
113 type: string
114 default: "rgw*"
115 description: "Salt targeted RGW nodes (ex. rgw*)"
116 CID_TARGET:
117 type: string
118 default: "cid*"
119 description: "Salt targeted CID nodes (ex. cid*)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100120 KVM_TARGET:
121 type: string
122 default: "kvm01*"
123 description: "Salt targeted physical KVM nodes (ex. kvm01*)"
124 CEPH_OSD_TARGET:
125 type: string
126 default: "osd001*"
127 description: "Salt targeted physical Ceph OSD nodes (ex. osd001*)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100128 ROLLBACK_PKG_VERSIONS:
129 type: string
130 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200131 description: "Space separated list of pkgs=versions to rollback to on physical targeted machines (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100132 PURGE_PKGS:
133 type: string
134 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200135 description: "Space separated list of pkgs=versions to be purged on physical targeted machines (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100136 REMOVE_PKGS:
137 type: string
138 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200139 description: "Space separated list of pkgs=versions to be removed on physical targeted machines (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100140 RESTORE_GALERA:
141 type: boolean
142 default: 'false'
143 description: "Restore Galera DB"
144 RESTORE_CONTRAIL_DB:
145 type: boolean
146 default: 'false'
147 description: "Restore Cassandra and Zookeeper DBs for OpenContrail"
Richard Felkl464031f2018-06-28 11:34:18 +0200148 RUN_CVP_TESTS:
149 type: boolean
150 default: 'false'
151 description: "Run cloud validation pipelines before and after update"
Martin Polreicha1c2e512018-08-21 16:31:41 +0200152 MINIONS_TEST_TIMEOUT:
153 type: string
154 default: 10
155 description: "Time in seconds for a Salt result to receive a response when calling a minionsReachable method."