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 |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 6 | stack_install: core,k8s,calico |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 7 | job_timer: "" |
| 8 | - stack_name: k8s_calico |
| 9 | stack_type: aws |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 10 | stack_install: core,k8s,calico |
| 11 | job_timer: "H H * * *" |
Tomáš Kukrál | 3f73bcd | 2017-06-27 11:09:36 +0200 | [diff] [blame] | 12 | # - stack_name: ceph_ha |
| 13 | # stack_type: heat |
| 14 | # stack_install: core |
| 15 | # job_timer: "" |
| 16 | # - stack_name: drivetrain_ha |
| 17 | # stack_type: heat |
| 18 | # stack_install: core |
| 19 | # job_timer: "" |
| 20 | # - stack_name: drivetrain_ha_clusters |
| 21 | # stack_type: heat |
| 22 | # stack_install: core |
| 23 | # job_timer: "" |
| 24 | - stack_name: k8s_aio_calico |
| 25 | stack_type: heat |
| 26 | stack_install: core,k8s,calico |
| 27 | job_timer: "" |
| 28 | - stack_name: k8s_aio_contrail |
| 29 | stack_type: heat |
| 30 | stack_install: core,k8s,contrail |
| 31 | job_timer: "" |
| 32 | - stack_name: k8s_ha_calico |
| 33 | stack_type: heat |
| 34 | stack_install: core,k8s,calico |
| 35 | job_timer: "" |
| 36 | - stack_name: k8s_ha_contrail |
| 37 | stack_type: heat |
| 38 | stack_install: core,k8s,contrail |
| 39 | job_timer: "" |
| 40 | - stack_name: os_aio_contrail |
| 41 | stack_type: heat |
| 42 | stack_install: core,openstack,contrail |
| 43 | job_timer: "" |
| 44 | - stack_name: os_aio_ovs |
| 45 | stack_type: heat |
| 46 | stack_install: core,openstack,ovs |
| 47 | job_timer: "" |
| 48 | - stack_name: os_ha_contrail |
| 49 | stack_type: heat |
| 50 | stack_install: core,openstack,contrail |
| 51 | job_timer: "" |
| 52 | - stack_name: os_ha_ovs |
| 53 | stack_type: heat |
| 54 | stack_install: core,openstack,ovs |
| 55 | job_timer: "" |
| 56 | - stack_name: stacklight_k8s_calico |
| 57 | stack_type: heat |
| 58 | stack_install: core,k8s,calico,stacklight |
| 59 | job_timer: "" |
| 60 | - stack_name: stacklight_os_contrail |
| 61 | stack_type: heat |
| 62 | stack_install: core,openstack,contrail,stacklight |
| 63 | job_timer: "" |
| 64 | - stack_name: stacklight_os_ovs |
| 65 | stack_type: heat |
| 66 | stack_install: core,openstack,ovs,stacklight |
| 67 | job_timer: "" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 68 | jenkins: |
| 69 | client: |
| 70 | job_template: |
| 71 | cloud_deploy_heat_template: |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 72 | name: deploy-{{stack_type}}-{{stack_name}} |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 73 | jobs: ${_param:jenkins_cloud_deploy_pipelines} |
| 74 | template: |
| 75 | type: workflow-scm |
| 76 | discard: |
| 77 | build: |
| 78 | keep_num: 20 |
| 79 | concurrent: true |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 80 | display_name: "Deploy - {{stack_name}} {{stack_type}}" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 81 | scm: |
| 82 | type: git |
| 83 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
| 84 | credentials: "gerrit" |
| 85 | script: cloud-deploy-pipeline.groovy |
| 86 | trigger: |
| 87 | timer: |
| 88 | spec: "{{job_timer}}" |
| 89 | param: |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 90 | # general parameters |
| 91 | ASK_ON_ERROR: |
| 92 | type: boolean |
| 93 | default: 'false' |
| 94 | |
| 95 | # deployments |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 96 | STACK_NAME: |
| 97 | type: string |
| 98 | description: Heat stack name. Will be generated if missing. |
| 99 | STACK_TEMPLATE: |
| 100 | type: string |
| 101 | default: "{{stack_name}}" |
| 102 | STACK_TYPE: |
| 103 | type: string |
| 104 | default: "{{stack_type}}" |
| 105 | STACK_INSTALL: |
| 106 | type: string |
| 107 | default: "{{stack_install}}" |
| 108 | STACK_TEST: |
| 109 | type: string |
| 110 | default: "" |
| 111 | STACK_DELETE: |
| 112 | type: boolean |
| 113 | default: 'true' |
| 114 | description: "Don't enable it if you need to use the lab after" |
| 115 | STACK_REUSE: |
| 116 | type: boolean |
| 117 | default: 'false' |
Tomáš Kukrál | c113ac6 | 2017-06-05 15:26:55 +0200 | [diff] [blame] | 118 | STACK_COMPUTE_COUNT: |
| 119 | type: string |
| 120 | default: '2' |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 121 | |
| 122 | STACK_TEMPLATE_URL: |
| 123 | type: string |
| 124 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
| 125 | STACK_TEMPLATE_CREDENTIALS: |
| 126 | type: string |
| 127 | default: "gerrit" |
| 128 | STACK_TEMPLATE_BRANCH: |
| 129 | type: string |
| 130 | default: "master" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 131 | STACK_CLEANUP_JOB: |
| 132 | type: string |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 133 | default: 'deploy-stack-cleanup' |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 134 | |
| 135 | # salt master |
| 136 | SALT_MASTER_CREDENTIALS: |
| 137 | type: string |
| 138 | default: "salt-qa-credentials" |
| 139 | SALT_MASTER_URL: |
| 140 | type: string |
| 141 | default: "" |
Tomáš Kukrál | 3f73bcd | 2017-06-27 11:09:36 +0200 | [diff] [blame] | 142 | SALT_OVERRIDES: |
| 143 | type: text |
| 144 | default: "" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 145 | |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 146 | # aws api |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 147 | AWS_STACK_REGION: |
| 148 | type: string |
| 149 | default: "us-west-2" |
| 150 | AWS_API_CREDENTIALS: |
| 151 | type: string |
Tomáš Kukrál | eaa0e25 | 2017-05-25 12:14:39 +0200 | [diff] [blame] | 152 | default: "aws-credentials" |
| 153 | AWS_SSH_KEY: |
| 154 | type: string |
| 155 | default: "jenkins-mk" |
| 156 | |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 157 | |
| 158 | # openstack api |
| 159 | OPENSTACK_API_URL: |
| 160 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 161 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 162 | OPENSTACK_API_CREDENTIALS: |
| 163 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 164 | default: "openstack-devcloud-credentials" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 165 | OPENSTACK_API_PROJECT: |
| 166 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 167 | default: "mcp-mk" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 168 | OPENSTACK_API_CLIENT: |
| 169 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 170 | default: "" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 171 | OPENSTACK_API_VERSION: |
| 172 | type: string |
Tomáš Kukrál | f004490 | 2017-07-11 10:38:03 +0200 | [diff] [blame] | 173 | default: "3" |
Matthew Mosesohn | c72219b | 2017-06-02 16:48:58 +0300 | [diff] [blame] | 174 | OPENSTACK_API_PROJECT_DOMAIN: |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 175 | type: string |
| 176 | default: "default" |
| 177 | OPENSTACK_API_USER_DOMAIN_ID: |
| 178 | type: string |
| 179 | default: "default" |
Matthew Mosesohn | c72219b | 2017-06-02 16:48:58 +0300 | [diff] [blame] | 180 | OPENSTACK_API_PROJECT_ID: |
| 181 | type: string |
| 182 | default: "" |
| 183 | OPENSTACK_API_USER_DOMAIN: |
| 184 | type: string |
| 185 | default: "default" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 186 | |
| 187 | # heat |
| 188 | HEAT_STACK_ENVIRONMENT: |
| 189 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 190 | default: "devcloud" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 191 | HEAT_STACK_ZONE: |
| 192 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 193 | default: "mcp-mk" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 194 | HEAT_STACK_PUBLIC_NET: |
| 195 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 196 | default: "public" |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 197 | |
| 198 | # k8s setttings |
| 199 | K8S_API_SERVER: |
| 200 | type: string |
| 201 | default: "http://127.0.0.1:8080" |
| 202 | K8S_CONFORMANCE_IMAGE: |
| 203 | type: string |
| 204 | default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.5.1-3_1482332392819" |
| 205 | |
Tomáš Kukrál | f004490 | 2017-07-11 10:38:03 +0200 | [diff] [blame] | 206 | # openstack settings |
Tomáš Kukrál | fa6aa47 | 2017-06-01 10:27:59 +0200 | [diff] [blame] | 207 | TEMPEST_IMAGE: |
Ales Komarek | e3a6ff6 | 2017-05-22 16:56:09 +0200 | [diff] [blame] | 208 | type: string |
| 209 | default: "sandbox-docker-prod-local.docker.mirantis.net/mirantis/rally_tempest:0.1" |
| 210 | |