blob: fa1305198f44c0a6f66d5b4b3f8811efa103cc98 [file] [log] [blame]
Ales Komareke3a6ff62017-05-22 16:56:09 +02001parameters:
2 _param:
3 jenkins_cloud_deploy_pipelines:
4 - stack_name: k8s_calico
5 stack_type: heat
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +02006 stack_install: core,k8s,calico
Ales Komareke3a6ff62017-05-22 16:56:09 +02007 job_timer: ""
8 - stack_name: k8s_calico
9 stack_type: aws
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +020010 stack_install: core,k8s,calico
11 job_timer: "H H * * *"
Tomáš Kukrál3f73bcd2017-06-27 11:09:36 +020012# - stack_name: ceph_ha
13# stack_type: heat
14# stack_install: core
15# job_timer: ""
16# - stack_name: drivetrain_ha
17# stack_type: heat
18# stack_install: core
19# job_timer: ""
20# - stack_name: drivetrain_ha_clusters
21# stack_type: heat
22# stack_install: core
23# job_timer: ""
24 - stack_name: k8s_aio_calico
25 stack_type: heat
26 stack_install: core,k8s,calico
27 job_timer: ""
28 - stack_name: k8s_aio_contrail
29 stack_type: heat
30 stack_install: core,k8s,contrail
31 job_timer: ""
32 - stack_name: k8s_ha_calico
33 stack_type: heat
34 stack_install: core,k8s,calico
35 job_timer: ""
36 - stack_name: k8s_ha_contrail
37 stack_type: heat
38 stack_install: core,k8s,contrail
39 job_timer: ""
40 - stack_name: os_aio_contrail
41 stack_type: heat
42 stack_install: core,openstack,contrail
43 job_timer: ""
44 - stack_name: os_aio_ovs
45 stack_type: heat
46 stack_install: core,openstack,ovs
47 job_timer: ""
48 - stack_name: os_ha_contrail
49 stack_type: heat
50 stack_install: core,openstack,contrail
51 job_timer: ""
52 - stack_name: os_ha_ovs
53 stack_type: heat
54 stack_install: core,openstack,ovs
55 job_timer: ""
56 - stack_name: stacklight_k8s_calico
57 stack_type: heat
58 stack_install: core,k8s,calico,stacklight
59 job_timer: ""
60 - stack_name: stacklight_os_contrail
61 stack_type: heat
62 stack_install: core,openstack,contrail,stacklight
63 job_timer: ""
64 - stack_name: stacklight_os_ovs
65 stack_type: heat
66 stack_install: core,openstack,ovs,stacklight
67 job_timer: ""
Ales Komareke3a6ff62017-05-22 16:56:09 +020068 jenkins:
69 client:
70 job_template:
71 cloud_deploy_heat_template:
Tomáš Kukráleaa0e252017-05-25 12:14:39 +020072 name: deploy-{{stack_type}}-{{stack_name}}
Ales Komareke3a6ff62017-05-22 16:56:09 +020073 jobs: ${_param:jenkins_cloud_deploy_pipelines}
74 template:
75 type: workflow-scm
76 discard:
77 build:
78 keep_num: 20
79 concurrent: true
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +020080 display_name: "Deploy - {{stack_name}} {{stack_type}}"
Ales Komareke3a6ff62017-05-22 16:56:09 +020081 scm:
82 type: git
83 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
84 credentials: "gerrit"
85 script: cloud-deploy-pipeline.groovy
86 trigger:
87 timer:
88 spec: "{{job_timer}}"
89 param:
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +020090 # general parameters
91 ASK_ON_ERROR:
92 type: boolean
93 default: 'false'
94
95 # deployments
Ales Komareke3a6ff62017-05-22 16:56:09 +020096 STACK_NAME:
97 type: string
98 description: Heat stack name. Will be generated if missing.
99 STACK_TEMPLATE:
100 type: string
101 default: "{{stack_name}}"
102 STACK_TYPE:
103 type: string
104 default: "{{stack_type}}"
105 STACK_INSTALL:
106 type: string
107 default: "{{stack_install}}"
108 STACK_TEST:
109 type: string
110 default: ""
111 STACK_DELETE:
112 type: boolean
113 default: 'true'
114 description: "Don't enable it if you need to use the lab after"
115 STACK_REUSE:
116 type: boolean
117 default: 'false'
Tomáš Kukrálc113ac62017-06-05 15:26:55 +0200118 STACK_COMPUTE_COUNT:
119 type: string
120 default: '2'
Ales Komareke3a6ff62017-05-22 16:56:09 +0200121
122 STACK_TEMPLATE_URL:
123 type: string
124 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
125 STACK_TEMPLATE_CREDENTIALS:
126 type: string
127 default: "gerrit"
128 STACK_TEMPLATE_BRANCH:
129 type: string
130 default: "master"
Jakub Josefca7e4562017-05-24 11:40:35 +0200131 STACK_CLEANUP_JOB:
132 type: string
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +0200133 default: 'deploy-stack-cleanup'
Ales Komareke3a6ff62017-05-22 16:56:09 +0200134
135 # salt master
136 SALT_MASTER_CREDENTIALS:
137 type: string
138 default: "salt-qa-credentials"
139 SALT_MASTER_URL:
140 type: string
141 default: ""
Tomáš Kukrál3f73bcd2017-06-27 11:09:36 +0200142 SALT_OVERRIDES:
143 type: text
144 default: ""
Ales Komareke3a6ff62017-05-22 16:56:09 +0200145
Tomáš Kukráleaa0e252017-05-25 12:14:39 +0200146 # aws api
Ales Komareke3a6ff62017-05-22 16:56:09 +0200147 AWS_STACK_REGION:
148 type: string
149 default: "us-west-2"
150 AWS_API_CREDENTIALS:
151 type: string
Tomáš Kukráleaa0e252017-05-25 12:14:39 +0200152 default: "aws-credentials"
153 AWS_SSH_KEY:
154 type: string
155 default: "jenkins-mk"
156
Ales Komareke3a6ff62017-05-22 16:56:09 +0200157
158 # openstack api
159 OPENSTACK_API_URL:
160 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200161 default: "https://cloud-cz.bud.mirantis.net:5000"
Ales Komareke3a6ff62017-05-22 16:56:09 +0200162 OPENSTACK_API_CREDENTIALS:
163 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200164 default: "openstack-devcloud-credentials"
Ales Komareke3a6ff62017-05-22 16:56:09 +0200165 OPENSTACK_API_PROJECT:
166 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200167 default: "mcp-mk"
Ales Komareke3a6ff62017-05-22 16:56:09 +0200168 OPENSTACK_API_CLIENT:
169 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200170 default: ""
Ales Komareke3a6ff62017-05-22 16:56:09 +0200171 OPENSTACK_API_VERSION:
172 type: string
Tomáš Kukrálf0044902017-07-11 10:38:03 +0200173 default: "3"
Matthew Mosesohnc72219b2017-06-02 16:48:58 +0300174 OPENSTACK_API_PROJECT_DOMAIN:
Ales Komareke3a6ff62017-05-22 16:56:09 +0200175 type: string
176 default: "default"
177 OPENSTACK_API_USER_DOMAIN_ID:
178 type: string
179 default: "default"
Matthew Mosesohnc72219b2017-06-02 16:48:58 +0300180 OPENSTACK_API_PROJECT_ID:
181 type: string
182 default: ""
183 OPENSTACK_API_USER_DOMAIN:
184 type: string
185 default: "default"
Ales Komareke3a6ff62017-05-22 16:56:09 +0200186
187 # heat
188 HEAT_STACK_ENVIRONMENT:
189 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200190 default: "devcloud"
Ales Komareke3a6ff62017-05-22 16:56:09 +0200191 HEAT_STACK_ZONE:
192 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200193 default: "mcp-mk"
Ales Komareke3a6ff62017-05-22 16:56:09 +0200194 HEAT_STACK_PUBLIC_NET:
195 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200196 default: "public"
Ales Komareke3a6ff62017-05-22 16:56:09 +0200197
198 # k8s setttings
199 K8S_API_SERVER:
200 type: string
201 default: "http://127.0.0.1:8080"
202 K8S_CONFORMANCE_IMAGE:
203 type: string
204 default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.5.1-3_1482332392819"
205
Tomáš Kukrálf0044902017-07-11 10:38:03 +0200206 # openstack settings
Tomáš Kukrálfa6aa472017-06-01 10:27:59 +0200207 TEMPEST_IMAGE:
Ales Komareke3a6ff62017-05-22 16:56:09 +0200208 type: string
209 default: "sandbox-docker-prod-local.docker.mirantis.net/mirantis/rally_tempest:0.1"
210