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