blob: ba658b026a78a1c93be1423f55be1645e82092de [file] [log] [blame]
Jiri Broulikad0a9b42018-03-23 11:55:16 +01001#
2# Jobs to update cloud packages on given Salt master environment
3#
4parameters:
Jiri Broulikad0a9b42018-03-23 11:55:16 +01005 jenkins:
6 client:
7 job:
8 deploy-update-cloud:
9 type: workflow-scm
10 concurrent: true
Alexander Evseev4589d712018-08-03 12:36:15 +020011 discard:
12 build:
13 keep_num: 10
14 artifact:
15 keep_num: 10
Jiri Broulikad0a9b42018-03-23 11:55:16 +010016 display_name: "Deploy - update cloud"
17 scm:
18 type: git
19 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
20 branch: "${_param:jenkins_pipelines_branch}"
Sergey Galkinef9eabf2019-06-19 17:53:07 +040021 credentials: ${_param:jenkins_gerrit_credentials}
Jiri Broulikad0a9b42018-03-23 11:55:16 +010022 script: cloud-update.groovy
23 param:
24 SALT_MASTER_URL:
25 type: string
26 default: "${_param:jenkins_salt_api_url}"
27 SALT_MASTER_CREDENTIALS:
28 type: string
29 default: "salt"
30 SNAPSHOT_NAME:
31 type: string
32 default: "updateSnapshot1"
33 description: "Live snapshot name"
34 CFG_NODE_PROVIDER:
35 type: string
36 default: ""
37 description: "Physical machine hosting Salt-Master VM (ex. kvm01*)"
38 INTERACTIVE:
39 type: boolean
40 default: 'false'
41 description: "Ask interactive questions during pipeline run"
42 PER_NODE:
43 type: boolean
44 default: 'true'
45 description: "Target nodes will be managed one by one"
46 ROLLBACK_BY_REDEPLOY:
47 type: boolean
48 default: 'false'
49 description: "Omit taking live snapshots. Rollback is planned to be done by redeployment"
50 STOP_SERVICES:
51 type: boolean
52 default: 'true'
53 description: "Stop API services before update"
Jiri Broulikd9b01742018-04-05 13:40:31 +020054 TARGET_KERNEL_UPDATES:
55 type: string
Mykyta Karpinfe803d42018-12-04 16:43:59 +020056 default: "cfg,msg,dbs"
57 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 +020058 TARGET_REBOOT:
59 type: string
Mykyta Karpinfe803d42018-12-04 16:43:59 +020060 default: "cfg,msg,dbs"
61 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 +020062 TARGET_HIGHSTATE:
63 type: string
Mykyta Karpinfe803d42018-12-04 16:43:59 +020064 default: "cfg,msg,dbs"
65 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 +010066 TARGET_UPDATES:
67 type: string
Mykyta Karpinfe803d42018-12-04 16:43:59 +020068 default: "cfg,msg,dbs"
69 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 +010070 TARGET_ROLLBACKS:
71 type: string
72 default: ""
Mykyta Karpinfe803d42018-12-04 16:43:59 +020073 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 +020074 TARGET_SNAPSHOT_MERGES:
Jiri Broulik64b34a82018-03-23 17:37:07 +010075 type: string
76 default: ""
Mykyta Karpinfe803d42018-12-04 16:43:59 +020077 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 +010078 MSG_TARGET:
79 type: string
80 default: "msg*"
81 description: "Salt targeted MSG nodes (ex. msg*)"
82 DBS_TARGET:
83 type: string
84 default: "dbs*"
85 description: "Salt targeted DBS nodes (ex. dbs*)"
86 LOG_TARGET:
87 type: string
88 default: "log*"
89 description: "Salt targeted LOG nodes (ex. log*)"
90 MON_TARGET:
91 type: string
92 default: "mon*"
93 description: "Salt targeted MON nodes (ex. mon*)"
94 MTR_TARGET:
95 type: string
96 default: "mtr*"
97 description: "Salt targeted MTR nodes (ex. mtr*)"
98 NTW_TARGET:
99 type: string
100 default: "ntw*"
101 description: "Salt targeted NTW nodes (ex. ntw*)"
102 NAL_TARGET:
103 type: string
104 default: "nal*"
105 description: "Salt targeted NAL nodes (ex. nal*)"
106 CMN_TARGET:
107 type: string
108 default: "cmn*"
109 description: "Salt targeted CMN nodes (ex. cmn*)"
110 RGW_TARGET:
111 type: string
112 default: "rgw*"
113 description: "Salt targeted RGW nodes (ex. rgw*)"
114 CID_TARGET:
115 type: string
116 default: "cid*"
117 description: "Salt targeted CID nodes (ex. cid*)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100118 KVM_TARGET:
119 type: string
120 default: "kvm01*"
121 description: "Salt targeted physical KVM nodes (ex. kvm01*)"
122 CEPH_OSD_TARGET:
123 type: string
124 default: "osd001*"
125 description: "Salt targeted physical Ceph OSD nodes (ex. osd001*)"
Jiri Broulikad0a9b42018-03-23 11:55:16 +0100126 ROLLBACK_PKG_VERSIONS:
127 type: string
128 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200129 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 +0100130 PURGE_PKGS:
131 type: string
132 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200133 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 +0100134 REMOVE_PKGS:
135 type: string
136 default: ""
Jiri Broulik87dc9b72018-03-26 16:12:55 +0200137 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 +0100138 RESTORE_GALERA:
139 type: boolean
140 default: 'false'
141 description: "Restore Galera DB"
142 RESTORE_CONTRAIL_DB:
143 type: boolean
144 default: 'false'
145 description: "Restore Cassandra and Zookeeper DBs for OpenContrail"
Richard Felkl464031f2018-06-28 11:34:18 +0200146 RUN_CVP_TESTS:
147 type: boolean
148 default: 'false'
149 description: "Run cloud validation pipelines before and after update"
Martin Polreicha1c2e512018-08-21 16:31:41 +0200150 MINIONS_TEST_TIMEOUT:
151 type: string
152 default: 10
153 description: "Time in seconds for a Salt result to receive a response when calling a minionsReachable method."