Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 1 | parameters: |
| 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 Josef | ca1bb04 | 2017-05-25 15:54:41 +0200 | [diff] [blame] | 21 | HEAT_TEMPLATE_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 22 | type: string |
Tomáš Kukrál | 9c7266d | 2017-06-26 11:08:55 +0200 | [diff] [blame] | 23 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
Jakub Josef | ca1bb04 | 2017-05-25 15:54:41 +0200 | [diff] [blame] | 24 | HEAT_TEMPLATE_CREDENTIALS: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 25 | type: string |
| 26 | default: "gerrit" |
Jakub Josef | ca1bb04 | 2017-05-25 15:54:41 +0200 | [diff] [blame] | 27 | HEAT_TEMPLATE_BRANCH: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 28 | type: string |
| 29 | default: "master" |
Jakub Josef | ca1bb04 | 2017-05-25 15:54:41 +0200 | [diff] [blame] | 30 | HEAT_STACK_NAME: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 31 | type: string |
| 32 | description: Heat stack name. Will be generated if missing. |
Jakub Josef | ca1bb04 | 2017-05-25 15:54:41 +0200 | [diff] [blame] | 33 | HEAT_STACK_TEMPLATE: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 34 | type: string |
| 35 | default: "{{lab}}" |
| 36 | HEAT_STACK_ENVIRONMENT: |
| 37 | type: string |
Tomáš Kukrál | 39e7ce2 | 2017-06-22 20:38:32 +0200 | [diff] [blame] | 38 | default: "devcloud" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 39 | HEAT_STACK_ZONE: |
| 40 | type: string |
Tomáš Kukrál | 39e7ce2 | 2017-06-22 20:38:32 +0200 | [diff] [blame] | 41 | default: "mcp-mk" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 42 | HEAT_STACK_PUBLIC_NET: |
| 43 | type: string |
Tomáš Kukrál | 39e7ce2 | 2017-06-22 20:38:32 +0200 | [diff] [blame] | 44 | default: "public" |
Jakub Josef | ca1bb04 | 2017-05-25 15:54:41 +0200 | [diff] [blame] | 45 | 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 Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 53 | |
| 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ál | 39e7ce2 | 2017-06-22 20:38:32 +0200 | [diff] [blame] | 65 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 66 | OPENSTACK_API_CREDENTIALS: |
| 67 | type: string |
Tomáš Kukrál | 9f793db | 2017-06-26 16:14:41 +0200 | [diff] [blame] | 68 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 69 | OPENSTACK_API_PROJECT: |
| 70 | type: string |
Tomáš Kukrál | 39e7ce2 | 2017-06-22 20:38:32 +0200 | [diff] [blame] | 71 | default: "mcp-mk" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 72 | OPENSTACK_API_CLIENT: |
| 73 | type: string |
Tomáš Kukrál | 39e7ce2 | 2017-06-22 20:38:32 +0200 | [diff] [blame] | 74 | default: "" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 75 | OPENSTACK_API_VERSION: |
| 76 | type: string |
Tomáš Kukrál | 39e7ce2 | 2017-06-22 20:38:32 +0200 | [diff] [blame] | 77 | default: "3" |
Matthew Mosesohn | c72219b | 2017-06-02 16:48:58 +0300 | [diff] [blame] | 78 | OPENSTACK_API_PROJECT_DOMAIN: |
kairat_kushaev | 12b8d1f | 2017-05-18 17:49:33 +0400 | [diff] [blame] | 79 | type: string |
| 80 | default: "default" |
| 81 | OPENSTACK_API_USER_DOMAIN_ID: |
| 82 | type: string |
| 83 | default: "default" |
Matthew Mosesohn | c72219b | 2017-06-02 16:48:58 +0300 | [diff] [blame] | 84 | OPENSTACK_API_PROJECT_ID: |
| 85 | type: string |
| 86 | default: "" |
| 87 | OPENSTACK_API_USER_DOMAIN: |
| 88 | type: string |
| 89 | default: "default" |