Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 1 | parameters: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 2 | _param: |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 3 | jenkins_deploy_jobs: [] |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 4 | jenkins: |
5 | client: | ||||
6 | job_template: | ||||
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 7 | deploy_template: |
8 | name: deploy-{{stack_type}}-{{stack_name}} | ||||
9 | jobs: ${_param:jenkins_deploy_jobs} | ||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 10 | template: |
11 | type: workflow-scm | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 12 | discard: |
13 | build: | ||||
14 | keep_num: 20 | ||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 15 | concurrent: true |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 16 | display_name: "Deploy - {{stack_name}} {{stack_type}}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 17 | scm: |
18 | type: git | ||||
19 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" | ||||
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 20 | branch: "${_param:jenkins_pipelines_branch}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 21 | credentials: "gerrit" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 22 | script: cloud-deploy-pipeline.groovy |
Tomáš Kukrál | 903a7f6 | 2017-04-13 13:21:30 +0200 | [diff] [blame] | 23 | trigger: |
24 | timer: | ||||
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 25 | spec: "{{job_timer}}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 26 | param: |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 27 | # general parameters |
28 | ASK_ON_ERROR: | ||||
29 | type: boolean | ||||
30 | default: 'false' | ||||
Oleg Grigorov | 7aee358 | 2017-10-31 16:02:19 +0200 | [diff] [blame] | 31 | SLAVE_NODE: |
32 | type: string | ||||
33 | default: 'python' | ||||
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 34 | |
35 | # deployments | ||||
36 | STACK_NAME: | ||||
37 | type: string | ||||
38 | description: Heat stack name. Will be generated if missing. | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 39 | STACK_TYPE: |
40 | type: string | ||||
41 | default: "{{stack_type}}" | ||||
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 42 | STACK_INSTALL: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 43 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 44 | default: "{{stack_install}}" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 45 | STACK_TEST: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 46 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 47 | default: "{{stack_test}}" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 48 | STACK_REUSE: |
49 | type: boolean | ||||
50 | default: 'false' | ||||
51 | STACK_DELETE: | ||||
52 | type: boolean | ||||
53 | default: 'true' | ||||
54 | description: "Don't enable it if you need to use the lab after" | ||||
55 | STACK_COMPUTE_COUNT: | ||||
56 | type: string | ||||
57 | default: '2' | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 58 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 59 | STACK_TEMPLATE: |
60 | type: string | ||||
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 61 | default: "{{stack_name}}" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 62 | STACK_TEMPLATE_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 63 | type: string |
Tomáš Kukrál | cf72c8d | 2017-04-19 21:50:05 +0200 | [diff] [blame] | 64 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 65 | STACK_TEMPLATE_CREDENTIALS: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 66 | type: string |
67 | default: "gerrit" | ||||
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 68 | STACK_TEMPLATE_BRANCH: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 69 | type: string |
Tomáš Kukrál | 394cdbf | 2017-03-29 16:35:37 +0200 | [diff] [blame] | 70 | default: "master" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 71 | STACK_CLEANUP_JOB: |
72 | type: string | ||||
Jakub Josef | 1c27123 | 2017-06-05 11:39:34 +0200 | [diff] [blame] | 73 | default: 'deploy-stack-cleanup' |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 74 | |
Mykyta Karpin | c54ab52 | 2017-11-30 12:48:29 +0100 | [diff] [blame] | 75 | STACK_RECLASS_ADDRESS: |
76 | type: string | ||||
77 | default: "" | ||||
ibumarskov | ff68f41 | 2017-09-11 13:20:15 +0400 | [diff] [blame] | 78 | STACK_RECLASS_BRANCH: |
79 | type: string | ||||
80 | default: "" | ||||
81 | |||||
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 82 | # salt |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 83 | SALT_MASTER_CREDENTIALS: |
84 | type: string | ||||
85 | default: "salt-qa-credentials" | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 86 | SALT_MASTER_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 87 | type: string |
Filip Pytloun | aa45601 | 2017-03-24 12:49:25 +0100 | [diff] [blame] | 88 | default: "" |
Vasyl Saienko | bfe884f | 2017-07-27 14:50:23 +0300 | [diff] [blame] | 89 | SALT_OVERRIDES: |
Vasyl Saienko | 47f2347 | 2017-07-27 14:19:00 +0300 | [diff] [blame] | 90 | type: text |
91 | default: "" | ||||
92 | description: "YAML with overrides for Salt deployment" | ||||
Mykyta Karpin | 0fc2a44 | 2017-12-22 16:50:24 +0200 | [diff] [blame] | 93 | BOOTSTRAP_EXTRA_REPO_PARAMS: |
94 | type: string | ||||
95 | default: "" | ||||
96 | 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 Karpin | 4659084 | 2017-10-03 11:34:02 +0300 | [diff] [blame] | 97 | FORMULA_PKG_REVISION: |
98 | type: string | ||||
99 | default: "" | ||||
100 | description: "Formulas revision to install on Salt Master bootstrap stage" | ||||
ibumarskov | 401fe45 | 2017-11-22 11:42:14 +0400 | [diff] [blame] | 101 | EXTRA_FORMULAS: |
102 | type: string | ||||
ibumarskov | e159dc6 | 2017-12-29 05:07:36 -0800 | [diff] [blame^] | 103 | default: "" |
Jiri Broulik | 52b7315 | 2017-12-19 15:37:50 +0100 | [diff] [blame] | 104 | STATIC_MGMT_NETWORK: |
105 | type: boolean | ||||
106 | default: 'false' | ||||
107 | description: "Check if model contains static IP address definitions for all nodes" | ||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 108 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 109 | # aws api |
110 | AWS_STACK_REGION: | ||||
111 | type: string | ||||
Tomáš Kukrál | 1de34e3 | 2017-11-29 10:15:37 +0100 | [diff] [blame] | 112 | default: "eu-central-1" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 113 | AWS_API_CREDENTIALS: |
114 | type: string | ||||
115 | default: "aws-credentials" | ||||
116 | AWS_SSH_KEY: | ||||
117 | type: string | ||||
118 | default: "jenkins-mk" | ||||
119 | |||||
120 | # heat | ||||
121 | HEAT_STACK_ENVIRONMENT: | ||||
122 | type: string | ||||
Ales Komarek | 4d74ebb | 2017-08-07 12:57:14 +0200 | [diff] [blame] | 123 | default: "{{stack_env}}" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 124 | HEAT_STACK_ZONE: |
125 | type: string | ||||
126 | default: "mcp-mk" | ||||
127 | HEAT_STACK_PUBLIC_NET: | ||||
128 | type: string | ||||
129 | default: "public" | ||||
130 | |||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 131 | # openstack api |
132 | OPENSTACK_API_URL: | ||||
133 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 134 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 135 | OPENSTACK_API_CREDENTIALS: |
136 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 137 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 138 | OPENSTACK_API_PROJECT: |
139 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 140 | default: "mcp-mk" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 141 | OPENSTACK_API_PROJECT_DOMAIN: |
142 | type: string | ||||
Tomáš Kukrál | b6f1522 | 2017-08-02 11:11:56 +0200 | [diff] [blame] | 143 | default: "default" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 144 | OPENSTACK_API_PROJECT_ID: |
145 | type: string | ||||
146 | default: "" | ||||
147 | OPENSTACK_API_USER_DOMAIN: | ||||
148 | type: string | ||||
149 | default: "default" | ||||
150 | |||||
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 151 | OPENSTACK_API_CLIENT: |
152 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 153 | default: "" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 154 | OPENSTACK_API_VERSION: |
155 | type: string | ||||
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 156 | default: "3" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 157 | |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 158 | # test |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 159 | TEST_K8S_API_SERVER: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 160 | type: string |
161 | default: "http://127.0.0.1:8080" | ||||
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 162 | TEST_K8S_CONFORMANCE_IMAGE: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 163 | type: string |
vrovachev | 7e70980 | 2017-09-15 20:04:26 +0400 | [diff] [blame] | 164 | default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.7.5-2_1504192939316" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 165 | |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 166 | TEST_TEMPEST_IMAGE: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 167 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 168 | description: "Tempest docker image" |
Oleksandr Kosse | 05a9811 | 2017-09-28 17:38:55 +0300 | [diff] [blame] | 169 | default: "docker-prod-local.artifactory.mirantis.com/mirantis/oscore/rally-tempest" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 170 | TEST_TEMPEST_TARGET: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 171 | type: string |
172 | description: "Node to run tests" | ||||
173 | default: "" | ||||
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 174 | TEST_DOCKER_INSTALL: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 175 | type: boolean |
176 | description: "Install docker on the target if true" | ||||
177 | default: "true" | ||||
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 178 | TEST_TEMPEST_PATTERN: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 179 | type: string |
180 | description: "Run tests matched to pattern only" | ||||
181 | default: "" | ||||
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 182 |