blob: 4fcc6d559ec4f788a245cfb3fafd4c5bf7990277 [file] [log] [blame]
Filip Pytloun7af94b32017-03-14 18:38:52 +01001parameters:
2 jenkins:
3 client:
4 job_template:
5 deploy_heat_cicd:
6 name: deploy-heat-{{name}}
7 jobs:
8 - name: cicd-lab-dev
9 lab: cicd_lab_dev
10 template:
11 type: workflow-scm
12 concurrent: true
13 display_name: "Deploy {{name}} heat stack"
14 scm:
15 type: git
16 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
17 credentials: "gerrit"
18 script: cicd-lab-pipeline.groovy
19 param:
20 # heat
Jakub Josef48fd93e2017-05-24 18:02:44 +020021 STACK_TEMPLATE_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010022 type: string
23 default: "git@github.com:Mirantis/mk-lab-heat-templates.git"
Jakub Josef48fd93e2017-05-24 18:02:44 +020024 STACK_TEMPLATE_CREDENTIALS:
Filip Pytloun7af94b32017-03-14 18:38:52 +010025 type: string
26 default: "gerrit"
Jakub Josef48fd93e2017-05-24 18:02:44 +020027 STACK_TEMPLATE_BRANCH:
Filip Pytloun7af94b32017-03-14 18:38:52 +010028 type: string
29 default: "master"
Jakub Josef48fd93e2017-05-24 18:02:44 +020030 STACK_NAME:
Filip Pytloun7af94b32017-03-14 18:38:52 +010031 type: string
32 description: Heat stack name. Will be generated if missing.
Jakub Josef48fd93e2017-05-24 18:02:44 +020033 STACK_TEMPLATE:
Filip Pytloun7af94b32017-03-14 18:38:52 +010034 type: string
35 default: "{{lab}}"
Jakub Josef48fd93e2017-05-24 18:02:44 +020036 STACK_DELETE:
37 type: boolean
38 default: 'true'
39 description: "Delete heat stack at the end of job"
40 STACK_REUSE:
41 type: boolean
42 default: 'false'
43 description: "Reuse existing stack and only orchestrate deployment"
44 STACK_CLEANUP_JOB:
45 type: string
46 default: 'deploy-heat-cleanup'
47
Filip Pytloun7af94b32017-03-14 18:38:52 +010048 HEAT_STACK_ENVIRONMENT:
49 type: string
50 default: "tcpisek"
51 HEAT_STACK_ZONE:
52 type: string
53 default: "mirantis-zone-qa"
54 HEAT_STACK_PUBLIC_NET:
55 type: string
56 default: "mirantis-private"
Filip Pytloun7af94b32017-03-14 18:38:52 +010057
58 # salt master
59 SALT_MASTER_CREDENTIALS:
60 type: string
61 default: "salt-qa-credentials"
62 SSH_PUBLIC_KEY:
63 type: string
64 description: "User's public SSH key to be able to login when stack is deployed"
65
66 # openstack api
67 OPENSTACK_API_URL:
68 type: string
69 default: "https://vpc.tcpisek.cz:5000/v2.0"
70 OPENSTACK_API_CREDENTIALS:
71 type: string
72 default: "openstack-qa-credentials"
73 OPENSTACK_API_PROJECT:
74 type: string
75 default: "mirantis_mk20_qa"
76 OPENSTACK_API_CLIENT:
77 type: string
78 default: "liberty"
79 OPENSTACK_API_VERSION:
80 type: string
81 default: "2"
kairat_kushaev12b8d1f2017-05-18 17:49:33 +040082 OPENSTACK_API_PROJECT_DOMAIN_ID:
83 type: string
84 default: "default"
85 OPENSTACK_API_USER_DOMAIN_ID:
86 type: string
87 default: "default"