blob: d524bbcd2a6ab7de00056271fea5c19ba682c106 [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"
Jakub Josef7938b532017-12-12 18:02:03 +010017 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010018 credentials: "gerrit"
19 script: cicd-lab-pipeline.groovy
20 param:
21 # heat
Jakub Josefca1bb042017-05-25 15:54:41 +020022 HEAT_TEMPLATE_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010023 type: string
Tomáš Kukrál9c7266d2017-06-26 11:08:55 +020024 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
Jakub Josefca1bb042017-05-25 15:54:41 +020025 HEAT_TEMPLATE_CREDENTIALS:
Filip Pytloun7af94b32017-03-14 18:38:52 +010026 type: string
27 default: "gerrit"
Jakub Josefca1bb042017-05-25 15:54:41 +020028 HEAT_TEMPLATE_BRANCH:
Filip Pytloun7af94b32017-03-14 18:38:52 +010029 type: string
30 default: "master"
Jakub Josefca1bb042017-05-25 15:54:41 +020031 HEAT_STACK_NAME:
Filip Pytloun7af94b32017-03-14 18:38:52 +010032 type: string
33 description: Heat stack name. Will be generated if missing.
Jakub Josefca1bb042017-05-25 15:54:41 +020034 HEAT_STACK_TEMPLATE:
Filip Pytloun7af94b32017-03-14 18:38:52 +010035 type: string
36 default: "{{lab}}"
37 HEAT_STACK_ENVIRONMENT:
38 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020039 default: "devcloud"
Filip Pytloun7af94b32017-03-14 18:38:52 +010040 HEAT_STACK_ZONE:
41 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020042 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +010043 HEAT_STACK_PUBLIC_NET:
44 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020045 default: "public"
Jakub Josefca1bb042017-05-25 15:54:41 +020046 HEAT_STACK_DELETE:
47 type: boolean
48 default: 'true'
49 description: "Delete heat stack at the end of job"
50 HEAT_STACK_REUSE:
51 type: boolean
52 default: 'false'
53 description: "Reuse existing stack and only orchestrate deployment"
Filip Pytloun7af94b32017-03-14 18:38:52 +010054
55 # salt master
56 SALT_MASTER_CREDENTIALS:
57 type: string
58 default: "salt-qa-credentials"
59 SSH_PUBLIC_KEY:
60 type: string
61 description: "User's public SSH key to be able to login when stack is deployed"
62
63 # openstack api
64 OPENSTACK_API_URL:
65 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020066 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +010067 OPENSTACK_API_CREDENTIALS:
68 type: string
Tomáš Kukrál9f793db2017-06-26 16:14:41 +020069 default: "openstack-devcloud-credentials"
Filip Pytloun7af94b32017-03-14 18:38:52 +010070 OPENSTACK_API_PROJECT:
71 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020072 default: "mcp-mk"
Filip Pytloun7af94b32017-03-14 18:38:52 +010073 OPENSTACK_API_CLIENT:
74 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020075 default: ""
Filip Pytloun7af94b32017-03-14 18:38:52 +010076 OPENSTACK_API_VERSION:
77 type: string
Tomáš Kukrál39e7ce22017-06-22 20:38:32 +020078 default: "3"
Matthew Mosesohnc72219b2017-06-02 16:48:58 +030079 OPENSTACK_API_PROJECT_DOMAIN:
kairat_kushaev12b8d1f2017-05-18 17:49:33 +040080 type: string
81 default: "default"
82 OPENSTACK_API_USER_DOMAIN_ID:
83 type: string
84 default: "default"
Matthew Mosesohnc72219b2017-06-02 16:48:58 +030085 OPENSTACK_API_PROJECT_ID:
86 type: string
87 default: ""
88 OPENSTACK_API_USER_DOMAIN:
89 type: string
90 default: "default"