blob: 0480557eca10ebd65f619b3853fcb5226ecfa81a [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 Broulik64b34a82018-03-23 17:37:07 +010051 TARGET_UPDATES:
52 type: string
53 default: "cfg,ctl,prx,msg,dbs"
54 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)"
55 TARGET_ROLLBACKS:
56 type: string
57 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +020058 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 +020059 TARGET_SNAPSHOT_MERGES:
Jiri Broulik64b34a82018-03-23 17:37:07 +010060 type: string
61 default: ""
Jiri Broulik0011a172018-03-29 13:33:37 +020062 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 +010063 CTL_TARGET:
64 type: string
65 default: "ctl*"
66 description: "Salt targeted CTL nodes (ex. ctl*)"
67 PRX_TARGET:
68 type: string
69 default: "prx*"
70 description: "Salt targeted PRX nodes (ex. prx*)"
71 MSG_TARGET:
72 type: string
73 default: "msg*"
74 description: "Salt targeted MSG nodes (ex. msg*)"
75 DBS_TARGET:
76 type: string
77 default: "dbs*"
78 description: "Salt targeted DBS nodes (ex. dbs*)"
79 LOG_TARGET:
80 type: string
81 default: "log*"
82 description: "Salt targeted LOG nodes (ex. log*)"
83 MON_TARGET:
84 type: string
85 default: "mon*"
86 description: "Salt targeted MON nodes (ex. mon*)"
87 MTR_TARGET:
88 type: string
89 default: "mtr*"
90 description: "Salt targeted MTR nodes (ex. mtr*)"
91 NTW_TARGET:
92 type: string
93 default: "ntw*"
94 description: "Salt targeted NTW nodes (ex. ntw*)"
95 NAL_TARGET:
96 type: string
97 default: "nal*"
98 description: "Salt targeted NAL nodes (ex. nal*)"
99 CMN_TARGET:
100 type: string
101 default: "cmn*"
102 description: "Salt targeted CMN nodes (ex. cmn*)"
103 RGW_TARGET:
104 type: string
105 default: "rgw*"
106 description: "Salt targeted RGW nodes (ex. rgw*)"
107 CID_TARGET:
108 type: string
109 default: "cid*"
110 description: "Salt targeted CID nodes (ex. cid*)"
111 CMP_TARGET:
112 type: string
113 default: "cmp001*"
114 description: "Salt targeted physical compute nodes (ex. cmp001*)"
115 KVM_TARGET:
116 type: string
117 default: "kvm01*"
118 description: "Salt targeted physical KVM nodes (ex. kvm01*)"
119 CEPH_OSD_TARGET:
120 type: string
121 default: "osd001*"
122 description: "Salt targeted physical Ceph OSD nodes (ex. osd001*)"
123 GTW_TARGET:
124 type: string
125 default: "gtw01*"
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200126 description: "Salt targeted physical or virtual GTW nodes (ex. gtw01*)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100127 REBOOT:
128 type: boolean
129 default: 'false'
130 description: "Reboot nodes after update"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100131 ROLLBACK_PKG_VERSIONS:
132 type: string
133 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200134 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 +0100135 PURGE_PKGS:
136 type: string
137 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200138 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 +0100139 REMOVE_PKGS:
140 type: string
141 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200142 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 +0100143 RESTORE_GALERA:
144 type: boolean
145 default: 'false'
146 description: "Restore Galera DB"
147 RESTORE_CONTRAIL_DB:
148 type: boolean
149 default: 'false'
150 description: "Restore Cassandra and Zookeeper DBs for OpenContrail"