blob: 9002c9cc15e927c13e34ebd57308f5fc0e5eeebe [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 Josefca1bb042017-05-25 15:54:41 +020021 HEAT_TEMPLATE_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010022 type: string
Tomáš Kukrál9c7266d2017-06-26 11:08:55 +020023 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
Jakub Josefca1bb042017-05-25 15:54:41 +020024 HEAT_TEMPLATE_CREDENTIALS:
Filip Pytloun7af94b32017-03-14 18:38:52 +010025 type: string
26 default: "gerrit"
Jakub Josefca1bb042017-05-25 15:54:41 +020027 HEAT_TEMPLATE_BRANCH:
Filip Pytloun7af94b32017-03-14 18:38:52 +010028 type: string
29 default: "master"
Jakub Josefca1bb042017-05-25 15:54:41 +020030 HEAT_STACK_NAME:
Filip Pytloun7af94b32017-03-14 18:38:52 +010031 type: string
32 description: Heat stack name. Will be generated if missing.
Jakub Josefca1bb042017-05-25 15:54:41 +020033 HEAT_STACK_TEMPLATE:
Filip Pytloun7af94b32017-03-14 18:38:52 +010034 type: string
35 default: "{{lab}}"
36 HEAT_STACK_ENVIRONMENT:
37 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020038 default: "devcloud"
Filip Pytloun7af94b32017-03-14 18:38:52 +010039 HEAT_STACK_ZONE:
40 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020041 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +010042 HEAT_STACK_PUBLIC_NET:
43 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020044 default: "public"
Jakub Josefca1bb042017-05-25 15:54:41 +020045 HEAT_STACK_DELETE:
46 type: boolean
47 default: 'true'
48 description: "Delete heat stack at the end of job"
49 HEAT_STACK_REUSE:
50 type: boolean
51 default: 'false'
52 description: "Reuse existing stack and only orchestrate deployment"
Filip Pytloun7af94b32017-03-14 18:38:52 +010053
54 # salt master
55 SALT_MASTER_CREDENTIALS:
56 type: string
57 default: "salt-qa-credentials"
58 SSH_PUBLIC_KEY:
59 type: string
60 description: "User's public SSH key to be able to login when stack is deployed"
61
62 # openstack api
63 OPENSTACK_API_URL:
64 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020065 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +010066 OPENSTACK_API_CREDENTIALS:
67 type: string
Tomáš Kukrál9f793db2017-06-26 16:14:41 +020068 default: "openstack-devcloud-credentials"
Filip Pytloun7af94b32017-03-14 18:38:52 +010069 OPENSTACK_API_PROJECT:
70 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020071 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +010072 OPENSTACK_API_CLIENT:
73 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020074 default: ""
Filip Pytloun7af94b32017-03-14 18:38:52 +010075 OPENSTACK_API_VERSION:
76 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020077 default: "3"
Matthew Mosesohnc72219b2017-06-02 16:48:58 +030078 OPENSTACK_API_PROJECT_DOMAIN:
kairat_kushaev12b8d1f2017-05-18 17:49:33 +040079 type: string
80 default: "default"
81 OPENSTACK_API_USER_DOMAIN_ID:
82 type: string
83 default: "default"
Matthew Mosesohnc72219b2017-06-02 16:48:58 +030084 OPENSTACK_API_PROJECT_ID:
85 type: string
86 default: ""
87 OPENSTACK_API_USER_DOMAIN:
88 type: string
89 default: "default"