blob: 5fea283fd707815a0c9cccf5af19d078c8a66dcb [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
13 display_name: "Deploy - update cloud"
14 scm:
15 type: git
16 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
17 branch: "${_param:jenkins_pipelines_branch}"
18 credentials: "gerrit"
19 script: cloud-update.groovy
20 param:
21 SALT_MASTER_URL:
22 type: string
23 default: "${_param:jenkins_salt_api_url}"
24 SALT_MASTER_CREDENTIALS:
25 type: string
26 default: "salt"
27 SNAPSHOT_NAME:
28 type: string
29 default: "updateSnapshot1"
30 description: "Live snapshot name"
31 CFG_NODE_PROVIDER:
32 type: string
33 default: ""
34 description: "Physical machine hosting Salt-Master VM (ex. kvm01*)"
35 INTERACTIVE:
36 type: boolean
37 default: 'false'
38 description: "Ask interactive questions during pipeline run"
39 PER_NODE:
40 type: boolean
41 default: 'true'
42 description: "Target nodes will be managed one by one"
43 ROLLBACK_BY_REDEPLOY:
44 type: boolean
45 default: 'false'
46 description: "Omit taking live snapshots. Rollback is planned to be done by redeployment"
47 STOP_SERVICES:
48 type: boolean
49 default: 'true'
50 description: "Stop API services before update"
51 CTL_TARGET:
52 type: string
53 default: "ctl*"
54 description: "Salt targeted CTL nodes (ex. ctl*)"
55 PRX_TARGET:
56 type: string
57 default: "prx*"
58 description: "Salt targeted PRX nodes (ex. prx*)"
59 MSG_TARGET:
60 type: string
61 default: "msg*"
62 description: "Salt targeted MSG nodes (ex. msg*)"
63 DBS_TARGET:
64 type: string
65 default: "dbs*"
66 description: "Salt targeted DBS nodes (ex. dbs*)"
67 LOG_TARGET:
68 type: string
69 default: "log*"
70 description: "Salt targeted LOG nodes (ex. log*)"
71 MON_TARGET:
72 type: string
73 default: "mon*"
74 description: "Salt targeted MON nodes (ex. mon*)"
75 MTR_TARGET:
76 type: string
77 default: "mtr*"
78 description: "Salt targeted MTR nodes (ex. mtr*)"
79 NTW_TARGET:
80 type: string
81 default: "ntw*"
82 description: "Salt targeted NTW nodes (ex. ntw*)"
83 NAL_TARGET:
84 type: string
85 default: "nal*"
86 description: "Salt targeted NAL nodes (ex. nal*)"
87 CMN_TARGET:
88 type: string
89 default: "cmn*"
90 description: "Salt targeted CMN nodes (ex. cmn*)"
91 RGW_TARGET:
92 type: string
93 default: "rgw*"
94 description: "Salt targeted RGW nodes (ex. rgw*)"
95 CID_TARGET:
96 type: string
97 default: "cid*"
98 description: "Salt targeted CID nodes (ex. cid*)"
99 CMP_TARGET:
100 type: string
101 default: "cmp001*"
102 description: "Salt targeted physical compute nodes (ex. cmp001*)"
103 KVM_TARGET:
104 type: string
105 default: "kvm01*"
106 description: "Salt targeted physical KVM nodes (ex. kvm01*)"
107 CEPH_OSD_TARGET:
108 type: string
109 default: "osd001*"
110 description: "Salt targeted physical Ceph OSD nodes (ex. osd001*)"
111 GTW_TARGET:
112 type: string
113 default: "gtw01*"
114 description: "Salt targeted physical GTW nodes (ex. gtw01*)"
115 REBOOT:
116 type: boolean
117 default: 'false'
118 description: "Reboot nodes after update"
119 UPDATE_CFG:
120 type: boolean
121 default: 'true'
122 description: "Run update on cfg nodes"
123 UPDATE_CTL:
124 type: boolean
125 default: 'true'
126 description: "Run update on ctl nodes"
127 UPDATE_PRX:
128 type: boolean
129 default: 'true'
130 description: "Run update on prx nodes"
131 UPDATE_MSG:
132 type: boolean
133 default: 'true'
134 description: "Run update on msg nodes"
135 UPDATE_DBS:
136 type: boolean
137 default: 'true'
138 description: "Run update on dbs nodes"
139 UPDATE_LOG:
140 type: boolean
141 default: 'true'
142 description: "Run update on log nodes"
143 UPDATE_MON:
144 type: boolean
145 default: 'true'
146 description: "Run update on mon nodes"
147 UPDATE_MTR:
148 type: boolean
149 default: 'true'
150 description: "Run update on mtr nodes"
151 UPDATE_NTW:
152 type: boolean
153 default: 'true'
154 description: "Run update on ntw nodes"
155 UPDATE_NAL:
156 type: boolean
157 default: 'true'
158 description: "Run update on nal nodes"
159 UPDATE_GTW_VIRTUAL:
160 type: boolean
161 default: 'true'
162 description: "Run update on gtw nodes"
163 UPDATE_CMN:
164 type: boolean
165 default: 'true'
166 description: "Run update on cmn nodes"
167 UPDATE_RGW:
168 type: boolean
169 default: 'true'
170 description: "Run update on rgw nodes"
171 UPDATE_CID:
172 type: boolean
173 default: 'true'
174 description: "Run update on cid nodes"
175 UPDATE_CMP:
176 type: boolean
177 default: 'true'
178 description: "Run update on physical cmp nodes"
179 UPDATE_KVM:
180 type: boolean
181 default: 'true'
182 description: "Run update on physical kvm nodes"
183 UPDATE_CEPH_OSD:
184 type: boolean
185 default: 'true'
186 description: "Run update on physical Ceph OSD nodes"
187 UPDATE_GTW_PHYSICAL:
188 type: boolean
189 default: 'true'
190 description: "Run update on physical gtw nodes"
191 ROLLBACK_CTL:
192 type: boolean
193 default: 'false'
194 description: "Run rollback on ctl nodes"
195 ROLLBACK_PRX:
196 type: boolean
197 default: 'false'
198 description: "Run rollback on prx nodes"
199 ROLLBACK_MSG:
200 type: boolean
201 default: 'false'
202 description: "Run rollback on msg nodes"
203 ROLLBACK_DBS:
204 type: boolean
205 default: 'false'
206 description: "Run rollback on dbs nodes"
207 ROLLBACK_LOG:
208 type: boolean
209 default: 'false'
210 description: "Run rollback on log nodes"
211 ROLLBACK_MON:
212 type: boolean
213 default: 'false'
214 description: "Run rollback on mon nodes"
215 ROLLBACK_MTR:
216 type: boolean
217 default: 'false'
218 description: "Run rollback on mtr nodes"
219 ROLLBACK_NTW:
220 type: boolean
221 default: 'false'
222 description: "Run rollback on ntw nodes"
223 ROLLBACK_NAL:
224 type: boolean
225 default: 'false'
226 description: "Run rollback on nal nodes"
227 ROLLBACK_GTW_VIRTUAL:
228 type: boolean
229 default: 'false'
230 description: "Run rollback on gtw nodes"
231 ROLLBACK_CMN:
232 type: boolean
233 default: 'false'
234 description: "Run rollback on cmn nodes"
235 ROLLBACK_RGW:
236 type: boolean
237 default: 'false'
238 description: "Run rollback on rgw nodes"
239 ROLLBACK_CMP:
240 type: boolean
241 default: 'false'
242 description: "Run rollback on physical cmp nodes"
243 ROLLBACK_KVM:
244 type: boolean
245 default: 'false'
246 description: "Run rollback on physical kvm nodes"
247 ROLLBACK_CEPH_OSD:
248 type: boolean
249 default: 'false'
250 description: "Run rollback on physical Ceph OSD nodes"
251 ROLLBACK_GTW_PHYSICAL:
252 type: boolean
253 default: 'false'
254 description: "Run rollback on physical gtw nodes"
255 ROLLBACK_PKG_VERSIONS:
256 type: string
257 default: ""
258 description: "Space separated list of pkgs=versions to rollback to (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)"
259 PURGE_PKGS:
260 type: string
261 default: ""
262 description: "Space separated list of pkgs=versions to be purged (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)"
263 REMOVE_PKGS:
264 type: string
265 default: ""
266 description: "Space separated list of pkgs=versions to be removed (ex. pkg_name1=pkg_version1 pkg_name2=pkg_version2)"
267 MERGE_CFG:
268 type: boolean
269 default: 'false'
270 description: "Merge live snapshot for cfg nodes"
271 MERGE_CTL:
272 type: boolean
273 default: 'false'
274 description: "Merge live snapshot for ctl nodes"
275 MERGE_PRX:
276 type: boolean
277 default: 'false'
278 description: "Merge live snapshot for prx nodes"
279 MERGE_MSG:
280 type: boolean
281 default: 'false'
282 description: "Merge live snapshot for msg nodes"
283 MERGE_DBS:
284 type: boolean
285 default: 'false'
286 description: "Merge live snapshot for dbs nodes"
287 MERGE_LOG:
288 type: boolean
289 default: 'false'
290 description: "Merge live snapshot for log nodes"
291 MERGE_MON:
292 type: boolean
293 default: 'false'
294 description: "Merge live snapshot for mon nodes"
295 MERGE_MTR:
296 type: boolean
297 default: 'false'
298 description: "Merge live snapshot for mtr nodes"
299 MERGE_NTW:
300 type: boolean
301 default: 'false'
302 description: "Merge live snapshot for ntw nodes"
303 MERGE_NAL:
304 type: boolean
305 default: 'false'
306 description: "Merge live snapshot for nal nodes"
307 MERGE_GTW_VIRTUAL:
308 type: boolean
309 default: 'false'
310 description: "Merge live snapshot for gtw nodes"
311 MERGE_CMN:
312 type: boolean
313 default: 'false'
314 description: "Merge live snapshot for cmn nodes"
315 MERGE_RGW:
316 type: boolean
317 default: 'false'
318 description: "Merge live snapshot for rgw nodes"
319 MERGE_CID:
320 type: boolean
321 default: 'false'
322 description: "Merge live snapshot for cid nodes"
323 RESTORE_GALERA:
324 type: boolean
325 default: 'false'
326 description: "Restore Galera DB"
327 RESTORE_CONTRAIL_DB:
328 type: boolean
329 default: 'false'
330 description: "Restore Cassandra and Zookeeper DBs for OpenContrail"