blob: d4348502acba7f2516a3ce8b48d91e14eee8a657 [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"
Jiri Broulikd9b01742018-04-05 13:40:31 +020051 TARGET_KERNEL_UPDATES:
52 type: string
53 default: "cfg,ctl,prx,msg,dbs"
54 description: "Comma separated list of nodes to update kernel if newer version is available (Valid values are cfg,ctl,prx,msg,dbs,log,mon,mtr,ntw,nal,gtw-virtual,cmn,rgw,cid,cmp,kvm,osd,gtw-physical)"
55 TARGET_REBOOT:
56 type: string
57 default: "cfg,ctl,prx,msg,dbs"
58 description: "Comma separated list of nodes to reboot after update or physical machine rollback (Valid values are cfg,ctl,prx,msg,dbs,log,mon,mtr,ntw,nal,gtw-virtual,cmn,rgw,cid,cmp,kvm,osd,gtw-physical)"
59 TARGET_HIGHSTATE:
60 type: string
61 default: "cfg,ctl,prx,msg,dbs"
62 description: "Comma separated list of nodes to run Salt Highstate on after update or physical machine rollback (Valid values are cfg,ctl,prx,msg,dbs,log,mon,mtr,ntw,nal,gtw-virtual,cmn,rgw,cid,cmp,kvm,osd,gtw-physical)"
Jiri Broulik64b34a82018-03-23 17:37:07 +010063 TARGET_UPDATES:
64 type: string
65 default: "cfg,ctl,prx,msg,dbs"
66 description: "Comma separated list of nodes to update (Valid values are cfg,ctl,prx,msg,dbs,log,mon,mtr,ntw,nal,gtw-virtual,cmn,rgw,cid,cmp,kvm,osd,gtw-physical)"
67 TARGET_ROLLBACKS:
68 type: string
69 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +020070 description: "Comma separated list of nodes to rollback (Valid values are ctl,prx,msg,dbs,log,mon,mtr,ntw,nal,gtw-virtual,cmn,rgw,cmp,kvm,osd,gtw-physical)"
Jiri Broulik0011a172018-03-29 13:33:37 +020071 TARGET_SNAPSHOT_MERGES:
Jiri Broulik64b34a82018-03-23 17:37:07 +010072 type: string
73 default: ""
Jiri Broulik0011a172018-03-29 13:33:37 +020074 description: "Comma separated list of nodes to merge live snapshot for (Valid values are cfg,ctl,prx,msg,dbs,log,mon,mtr,ntw,nal,gtw-virtual,cmn,rgw,cid)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +010075 CTL_TARGET:
76 type: string
77 default: "ctl*"
78 description: "Salt targeted CTL nodes (ex. ctl*)"
79 PRX_TARGET:
80 type: string
81 default: "prx*"
82 description: "Salt targeted PRX nodes (ex. prx*)"
83 MSG_TARGET:
84 type: string
85 default: "msg*"
86 description: "Salt targeted MSG nodes (ex. msg*)"
87 DBS_TARGET:
88 type: string
89 default: "dbs*"
90 description: "Salt targeted DBS nodes (ex. dbs*)"
91 LOG_TARGET:
92 type: string
93 default: "log*"
94 description: "Salt targeted LOG nodes (ex. log*)"
95 MON_TARGET:
96 type: string
97 default: "mon*"
98 description: "Salt targeted MON nodes (ex. mon*)"
99 MTR_TARGET:
100 type: string
101 default: "mtr*"
102 description: "Salt targeted MTR nodes (ex. mtr*)"
103 NTW_TARGET:
104 type: string
105 default: "ntw*"
106 description: "Salt targeted NTW nodes (ex. ntw*)"
107 NAL_TARGET:
108 type: string
109 default: "nal*"
110 description: "Salt targeted NAL nodes (ex. nal*)"
111 CMN_TARGET:
112 type: string
113 default: "cmn*"
114 description: "Salt targeted CMN nodes (ex. cmn*)"
115 RGW_TARGET:
116 type: string
117 default: "rgw*"
118 description: "Salt targeted RGW nodes (ex. rgw*)"
119 CID_TARGET:
120 type: string
121 default: "cid*"
122 description: "Salt targeted CID nodes (ex. cid*)"
123 CMP_TARGET:
124 type: string
125 default: "cmp001*"
126 description: "Salt targeted physical compute nodes (ex. cmp001*)"
127 KVM_TARGET:
128 type: string
129 default: "kvm01*"
130 description: "Salt targeted physical KVM nodes (ex. kvm01*)"
131 CEPH_OSD_TARGET:
132 type: string
133 default: "osd001*"
134 description: "Salt targeted physical Ceph OSD nodes (ex. osd001*)"
135 GTW_TARGET:
136 type: string
137 default: "gtw01*"
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200138 description: "Salt targeted physical or virtual GTW nodes (ex. gtw01*)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100139 ROLLBACK_PKG_VERSIONS:
140 type: string
141 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200142 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 +0100143 PURGE_PKGS:
144 type: string
145 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200146 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 +0100147 REMOVE_PKGS:
148 type: string
149 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200150 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 +0100151 RESTORE_GALERA:
152 type: boolean
153 default: 'false'
154 description: "Restore Galera DB"
155 RESTORE_CONTRAIL_DB:
156 type: boolean
157 default: 'false'
158 description: "Restore Cassandra and Zookeeper DBs for OpenContrail"
Richard Felkl464031f2018-06-28 11:34:18 +0200159 RUN_CVP_TESTS:
160 type: boolean
161 default: 'false'
162 description: "Run cloud validation pipelines before and after update"