blob: 1914ec590f01fe73cf9533c985e44cd15310f571 [file] [log] [blame]
Filip Pytloun7af94b32017-03-14 18:38:52 +01001parameters:
Filip Pytloun260a9502017-03-16 12:47:22 +01002 _param:
azvyagintsev16ca7ce2018-08-21 17:20:33 +03003 mcp_docker_registry: 'docker-prod-local.artifactory.mirantis.com'
Tomáš Kukrále15675c2017-08-03 10:54:00 +02004 jenkins_deploy_jobs: []
Sergey Otpuschennikov235fc472018-04-10 20:19:35 +04005 heat_stack_zone_job_param:
6 type: string
7 default: "mcp-mk"
8 openstack_api_projects_job_param:
9 type: string
10 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +010011 jenkins:
12 client:
13 job_template:
Tomáš Kukrále15675c2017-08-03 10:54:00 +020014 deploy_template:
15 name: deploy-{{stack_type}}-{{stack_name}}
16 jobs: ${_param:jenkins_deploy_jobs}
Filip Pytloun7af94b32017-03-14 18:38:52 +010017 template:
18 type: workflow-scm
Filip Pytloun260a9502017-03-16 12:47:22 +010019 discard:
20 build:
Jakub Josef1a828962018-01-23 12:33:34 +010021 keep_num: 100
Filip Pytloun7af94b32017-03-14 18:38:52 +010022 concurrent: true
Tomáš Kukrále15675c2017-08-03 10:54:00 +020023 display_name: "Deploy - {{stack_name}} {{stack_type}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010024 scm:
25 type: git
26 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010027 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010028 credentials: "gerrit"
Tomáš Kukrále0870442017-07-27 18:28:11 +020029 script: cloud-deploy-pipeline.groovy
Tomáš Kukrál903a7f62017-04-13 13:21:30 +020030 trigger:
31 timer:
Tomáš Kukrále15675c2017-08-03 10:54:00 +020032 spec: "{{job_timer}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010033 param:
Tomáš Kukrále0870442017-07-27 18:28:11 +020034 # general parameters
35 ASK_ON_ERROR:
36 type: boolean
37 default: 'false'
Oleg Grigorov7aee3582017-10-31 16:02:19 +020038 SLAVE_NODE:
39 type: string
40 default: 'python'
Tomáš Kukrále0870442017-07-27 18:28:11 +020041
42 # deployments
43 STACK_NAME:
44 type: string
45 description: Heat stack name. Will be generated if missing.
Filip Pytloun260a9502017-03-16 12:47:22 +010046 STACK_TYPE:
47 type: string
48 default: "{{stack_type}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020049 STACK_INSTALL:
Filip Pytloun260a9502017-03-16 12:47:22 +010050 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020051 default: "{{stack_install}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020052 STACK_TEST:
Filip Pytloun260a9502017-03-16 12:47:22 +010053 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020054 default: "{{stack_test}}"
Tomáš Kukrále0870442017-07-27 18:28:11 +020055 STACK_REUSE:
56 type: boolean
57 default: 'false'
58 STACK_DELETE:
59 type: boolean
60 default: 'true'
61 description: "Don't enable it if you need to use the lab after"
62 STACK_COMPUTE_COUNT:
63 type: string
64 default: '2'
Vasyl Saienko664c3192018-03-06 02:24:02 +020065 STACK_CLUSTER_NAME:
66 type: string
67 default: ""
68 description: "Cluster name to use from reclass"
Filip Pytloun260a9502017-03-16 12:47:22 +010069
Tomáš Kukrále0870442017-07-27 18:28:11 +020070 STACK_TEMPLATE:
71 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020072 default: "{{stack_name}}"
Jakub Josef43f34432017-05-23 19:16:49 +020073 STACK_TEMPLATE_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010074 type: string
Tomáš Kukrálcf72c8d2017-04-19 21:50:05 +020075 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
Jakub Josef43f34432017-05-23 19:16:49 +020076 STACK_TEMPLATE_CREDENTIALS:
Filip Pytloun7af94b32017-03-14 18:38:52 +010077 type: string
78 default: "gerrit"
Jakub Josef43f34432017-05-23 19:16:49 +020079 STACK_TEMPLATE_BRANCH:
Filip Pytloun7af94b32017-03-14 18:38:52 +010080 type: string
Tomáš Kukrál394cdbf2017-03-29 16:35:37 +020081 default: "master"
Jakub Josefca7e4562017-05-24 11:40:35 +020082 STACK_CLEANUP_JOB:
83 type: string
Jakub Josef1c271232017-06-05 11:39:34 +020084 default: 'deploy-stack-cleanup'
Filip Pytloun7af94b32017-03-14 18:38:52 +010085
Mykyta Karpinc54ab522017-11-30 12:48:29 +010086 STACK_RECLASS_ADDRESS:
87 type: string
88 default: ""
ibumarskovff68f412017-09-11 13:20:15 +040089 STACK_RECLASS_BRANCH:
90 type: string
91 default: ""
92
Tomáš Kukrále0870442017-07-27 18:28:11 +020093 # salt
Oleksii Grudev92b1a5b2018-07-06 17:24:58 +030094 EXTRA_TARGET:
95 type: string
96 default: ""
97 description: "Salt extra target for edge clouds deployment"
Filip Pytloun7af94b32017-03-14 18:38:52 +010098 SALT_MASTER_CREDENTIALS:
99 type: string
100 default: "salt-qa-credentials"
Filip Pytloun260a9502017-03-16 12:47:22 +0100101 SALT_MASTER_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +0100102 type: string
Filip Pytlounaa456012017-03-24 12:49:25 +0100103 default: ""
Vasyl Saienkobfe884f2017-07-27 14:50:23 +0300104 SALT_OVERRIDES:
Vasyl Saienko47f23472017-07-27 14:19:00 +0300105 type: text
106 default: ""
107 description: "YAML with overrides for Salt deployment"
Oleh Hryhorovca2b6ef2018-06-22 17:08:55 +0300108 SALT_VERSION:
109 type: text
Martin Polreichbd307772018-04-18 10:02:06 +0200110 default: "stable 2017.7"
111 description: "Version of Salt which is going to be installed i.e. 'stable 2016.3' or 'stable 2017.7' etc. Warning: This value doesn't override salt_version parameter set in the pillar."
Mykyta Karpin0fc2a442017-12-22 16:50:24 +0200112 BOOTSTRAP_EXTRA_REPO_PARAMS:
113 type: string
114 default: ""
115 description: "Defines a list of extra repos with parameters, format: repo 1, repo priority 1, repo pin 1; repo 2, repo priority 2, repo pin 2"
Mykyta Karpin46590842017-10-03 11:34:02 +0300116 FORMULA_PKG_REVISION:
117 type: string
118 default: ""
119 description: "Formulas revision to install on Salt Master bootstrap stage"
Jiri Broulik52b73152017-12-19 15:37:50 +0100120 STATIC_MGMT_NETWORK:
121 type: boolean
122 default: 'false'
123 description: "Check if model contains static IP address definitions for all nodes"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100124
Tomáš Kukrále0870442017-07-27 18:28:11 +0200125 # aws api
126 AWS_STACK_REGION:
127 type: string
Tomáš Kukrál1de34e32017-11-29 10:15:37 +0100128 default: "eu-central-1"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200129 AWS_API_CREDENTIALS:
130 type: string
131 default: "aws-credentials"
132 AWS_SSH_KEY:
133 type: string
134 default: "jenkins-mk"
135
136 # heat
137 HEAT_STACK_ENVIRONMENT:
138 type: string
Ales Komarek4d74ebb2017-08-07 12:57:14 +0200139 default: "{{stack_env}}"
Sergey Otpuschennikov235fc472018-04-10 20:19:35 +0400140 HEAT_STACK_ZONE: ${_param:heat_stack_zone_job_param}
Tomáš Kukrále0870442017-07-27 18:28:11 +0200141 HEAT_STACK_PUBLIC_NET:
142 type: string
143 default: "public"
144
Filip Pytloun7af94b32017-03-14 18:38:52 +0100145 # openstack api
146 OPENSTACK_API_URL:
147 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200148 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100149 OPENSTACK_API_CREDENTIALS:
150 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200151 default: "openstack-devcloud-credentials"
Sergey Otpuschennikov235fc472018-04-10 20:19:35 +0400152 OPENSTACK_API_PROJECT: ${_param:openstack_api_projects_job_param}
Tomáš Kukrále0870442017-07-27 18:28:11 +0200153 OPENSTACK_API_PROJECT_DOMAIN:
154 type: string
Tomáš Kukrálb6f15222017-08-02 11:11:56 +0200155 default: "default"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200156 OPENSTACK_API_PROJECT_ID:
157 type: string
158 default: ""
159 OPENSTACK_API_USER_DOMAIN:
160 type: string
161 default: "default"
162
Filip Pytloun7af94b32017-03-14 18:38:52 +0100163 OPENSTACK_API_CLIENT:
164 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200165 default: ""
Filip Pytloun7af94b32017-03-14 18:38:52 +0100166 OPENSTACK_API_VERSION:
167 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200168 default: "3"
Filip Pytloun260a9502017-03-16 12:47:22 +0100169
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200170 # test
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200171 TEST_K8S_API_SERVER:
Filip Pytloun260a9502017-03-16 12:47:22 +0100172 type: string
173 default: "http://127.0.0.1:8080"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200174 TEST_K8S_CONFORMANCE_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100175 type: string
Victor Ryzhenkinec323912018-10-04 19:11:50 +0400176 default: "docker-prod-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.11.3-2"
Filip Pytloun260a9502017-03-16 12:47:22 +0100177
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200178 TEST_TEMPEST_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100179 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200180 description: "Tempest docker image"
azvyagintsev16ca7ce2018-08-21 17:20:33 +0300181 default: "${_param:mcp_docker_registry}/mirantis/oscore/rally-tempest"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200182 TEST_TEMPEST_TARGET:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300183 type: string
184 description: "Node to run tests"
185 default: ""
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200186 TEST_DOCKER_INSTALL:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300187 type: boolean
188 description: "Install docker on the target if true"
189 default: "true"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200190 TEST_TEMPEST_PATTERN:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300191 type: string
192 description: "Run tests matched to pattern only"
193 default: ""
Filip Pytloun260a9502017-03-16 12:47:22 +0100194
ibumarskova73d7c32018-01-16 11:08:50 +0400195 # TestRail vars
196 TESTRAIL_REPORT:
197 type: boolean
198 description: "Report test results to TestRail if true"
199 default: "false"
200 TESTRAIL_REPORTER_IMAGE:
201 type: string
202 description: "Testrail reporter docker image"
203 default: "alrem/xunit2testrail"
204 TESTRAIL_QA_CREDENTIALS:
205 type: string
206 description: "Credentials for results upload to testrail"
207 default: "oscore-qa-credentials"
208 TESTRAIL_MILESTONE:
209 type: string
210 description: "TestRail milestone"
211 default: "MCP1.1"
212 TESTRAIL_PLAN:
213 type: string
214 description: "TestRail test plan name. Will be generated if missing."
215 default: ""
216 TESTRAIL_GROUP:
217 type: string
218 description: "TestRail test group name."
219 default: "{{stack_name}}"
220 TESTRAIL_SUITE:
221 type: string
222 description: "TestRail test suite name"
223 default: "Tempest 16.0.0 with designate tests"