Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | jenkins_cloud_deploy_pipelines: |
| 4 | - stack_name: k8s_calico |
| 5 | stack_type: heat |
| 6 | stack_install: core,k8s |
| 7 | job_timer: "" |
| 8 | - stack_name: k8s_calico |
| 9 | stack_type: aws |
| 10 | stack_install: core,k8s |
| 11 | job_timer: "" |
| 12 | jenkins: |
| 13 | client: |
| 14 | job_template: |
| 15 | cloud_deploy_heat_template: |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 16 | name: deploy-{{stack_type}}-{{stack_name}} |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 17 | jobs: ${_param:jenkins_cloud_deploy_pipelines} |
| 18 | template: |
| 19 | type: workflow-scm |
| 20 | discard: |
| 21 | build: |
| 22 | keep_num: 20 |
| 23 | concurrent: true |
| 24 | display_name: "Deploy {{stack_type}} {{stack_name}} stack" |
| 25 | scm: |
| 26 | type: git |
| 27 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 28 | credentials: "gerrit" |
| 29 | script: cloud-deploy-pipeline.groovy |
| 30 | trigger: |
| 31 | timer: |
| 32 | spec: "{{job_timer}}" |
| 33 | param: |
| 34 | # deployments and test settings |
| 35 | STACK_NAME: |
| 36 | type: string |
| 37 | description: Heat stack name. Will be generated if missing. |
| 38 | STACK_TEMPLATE: |
| 39 | type: string |
| 40 | default: "{{stack_name}}" |
| 41 | STACK_TYPE: |
| 42 | type: string |
| 43 | default: "{{stack_type}}" |
| 44 | STACK_INSTALL: |
| 45 | type: string |
| 46 | default: "{{stack_install}}" |
| 47 | STACK_TEST: |
| 48 | type: string |
| 49 | default: "" |
| 50 | STACK_DELETE: |
| 51 | type: boolean |
| 52 | default: 'true' |
| 53 | description: "Don't enable it if you need to use the lab after" |
| 54 | STACK_REUSE: |
| 55 | type: boolean |
| 56 | default: 'false' |
| 57 | |
| 58 | STACK_TEMPLATE_URL: |
| 59 | type: string |
| 60 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
| 61 | STACK_TEMPLATE_CREDENTIALS: |
| 62 | type: string |
| 63 | default: "gerrit" |
| 64 | STACK_TEMPLATE_BRANCH: |
| 65 | type: string |
| 66 | default: "master" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 67 | STACK_CLEANUP_JOB: |
| 68 | type: string |
| 69 | default: '' |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 70 | |
| 71 | # salt master |
| 72 | SALT_MASTER_CREDENTIALS: |
| 73 | type: string |
| 74 | default: "salt-qa-credentials" |
| 75 | SALT_MASTER_URL: |
| 76 | type: string |
| 77 | default: "" |
| 78 | |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 79 | # aws api |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 80 | AWS_STACK_REGION: |
| 81 | type: string |
| 82 | default: "us-west-2" |
| 83 | AWS_API_CREDENTIALS: |
| 84 | type: string |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 85 | default: "aws-credentials" |
| 86 | AWS_SSH_KEY: |
| 87 | type: string |
| 88 | default: "jenkins-mk" |
| 89 | |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 90 | |
| 91 | # openstack api |
| 92 | OPENSTACK_API_URL: |
| 93 | type: string |
Jakub Josef | 04f3320 | 2017-05-30 17:53:21 +0200 | [diff] [blame^] | 94 | default: "https://vpc.tcpisek.cz:5000" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 95 | OPENSTACK_API_CREDENTIALS: |
| 96 | type: string |
| 97 | default: "openstack-qa-credentials" |
| 98 | OPENSTACK_API_PROJECT: |
| 99 | type: string |
| 100 | default: "mirantis_mk20_qa" |
| 101 | OPENSTACK_API_CLIENT: |
| 102 | type: string |
| 103 | default: "liberty" |
| 104 | OPENSTACK_API_VERSION: |
| 105 | type: string |
| 106 | default: "2" |
| 107 | OPENSTACK_API_PROJECT_DOMAIN_ID: |
| 108 | type: string |
| 109 | default: "default" |
| 110 | OPENSTACK_API_USER_DOMAIN_ID: |
| 111 | type: string |
| 112 | default: "default" |
| 113 | |
| 114 | # heat |
| 115 | HEAT_STACK_ENVIRONMENT: |
| 116 | type: string |
| 117 | default: "tcpisek" |
| 118 | HEAT_STACK_ZONE: |
| 119 | type: string |
| 120 | default: "workshop-sunnyvale" |
| 121 | HEAT_STACK_PUBLIC_NET: |
| 122 | type: string |
| 123 | default: "mirantis-private" |
| 124 | |
| 125 | # k8s setttings |
| 126 | K8S_API_SERVER: |
| 127 | type: string |
| 128 | default: "http://127.0.0.1:8080" |
| 129 | K8S_CONFORMANCE_IMAGE: |
| 130 | type: string |
| 131 | default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.5.1-3_1482332392819" |
| 132 | |
| 133 | # Tempest settings |
| 134 | TEMPEST_IMAGE_LINK: |
| 135 | type: string |
| 136 | default: "sandbox-docker-prod-local.docker.mirantis.net/mirantis/rally_tempest:0.1" |
| 137 | |
| 138 | ASK_ON_ERROR: |
| 139 | type: boolean |
| 140 | default: 'false' |
| 141 | |