Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 1 | parameters: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 2 | _param: |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 3 | jenkins_deploy_jobs: [] |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 4 | jenkins: |
| 5 | client: |
| 6 | job_template: |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 7 | deploy_template: |
| 8 | name: deploy-{{stack_type}}-{{stack_name}} |
| 9 | jobs: ${_param:jenkins_deploy_jobs} |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 10 | template: |
| 11 | type: workflow-scm |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 12 | discard: |
| 13 | build: |
| 14 | keep_num: 20 |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 15 | concurrent: true |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 16 | display_name: "Deploy - {{stack_name}} {{stack_type}}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 17 | scm: |
| 18 | type: git |
| 19 | url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines" |
Jakub Josef | 7938b53 | 2017-12-12 18:02:03 +0100 | [diff] [blame] | 20 | branch: "${_param:jenkins_pipelines_branch}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 21 | credentials: "gerrit" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 22 | script: cloud-deploy-pipeline.groovy |
Tomáš Kukrál | 903a7f6 | 2017-04-13 13:21:30 +0200 | [diff] [blame] | 23 | trigger: |
| 24 | timer: |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 25 | spec: "{{job_timer}}" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 26 | param: |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 27 | # general parameters |
| 28 | ASK_ON_ERROR: |
| 29 | type: boolean |
| 30 | default: 'false' |
Oleg Grigorov | 7aee358 | 2017-10-31 16:02:19 +0200 | [diff] [blame] | 31 | SLAVE_NODE: |
| 32 | type: string |
| 33 | default: 'python' |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 34 | |
| 35 | # deployments |
| 36 | STACK_NAME: |
| 37 | type: string |
| 38 | description: Heat stack name. Will be generated if missing. |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 39 | STACK_TYPE: |
| 40 | type: string |
| 41 | default: "{{stack_type}}" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 42 | STACK_INSTALL: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 43 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 44 | default: "{{stack_install}}" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 45 | STACK_TEST: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 46 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 47 | default: "{{stack_test}}" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 48 | STACK_REUSE: |
| 49 | type: boolean |
| 50 | default: 'false' |
| 51 | STACK_DELETE: |
| 52 | type: boolean |
| 53 | default: 'true' |
| 54 | description: "Don't enable it if you need to use the lab after" |
| 55 | STACK_COMPUTE_COUNT: |
| 56 | type: string |
| 57 | default: '2' |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 58 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 59 | STACK_TEMPLATE: |
| 60 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 61 | default: "{{stack_name}}" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 62 | STACK_TEMPLATE_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 63 | type: string |
Tomáš Kukrál | cf72c8d | 2017-04-19 21:50:05 +0200 | [diff] [blame] | 64 | default: "${_param:jenkins_gerrit_url}/mk/heat-templates" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 65 | STACK_TEMPLATE_CREDENTIALS: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 66 | type: string |
| 67 | default: "gerrit" |
Jakub Josef | 43f3443 | 2017-05-23 19:16:49 +0200 | [diff] [blame] | 68 | STACK_TEMPLATE_BRANCH: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 69 | type: string |
Tomáš Kukrál | 394cdbf | 2017-03-29 16:35:37 +0200 | [diff] [blame] | 70 | default: "master" |
Jakub Josef | ca7e456 | 2017-05-24 11:40:35 +0200 | [diff] [blame] | 71 | STACK_CLEANUP_JOB: |
| 72 | type: string |
Jakub Josef | 1c27123 | 2017-06-05 11:39:34 +0200 | [diff] [blame] | 73 | default: 'deploy-stack-cleanup' |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 74 | |
Mykyta Karpin | c54ab52 | 2017-11-30 12:48:29 +0100 | [diff] [blame] | 75 | STACK_RECLASS_ADDRESS: |
| 76 | type: string |
| 77 | default: "" |
ibumarskov | ff68f41 | 2017-09-11 13:20:15 +0400 | [diff] [blame] | 78 | STACK_RECLASS_BRANCH: |
| 79 | type: string |
| 80 | default: "" |
| 81 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 82 | # salt |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 83 | SALT_MASTER_CREDENTIALS: |
| 84 | type: string |
| 85 | default: "salt-qa-credentials" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 86 | SALT_MASTER_URL: |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 87 | type: string |
Filip Pytloun | aa45601 | 2017-03-24 12:49:25 +0100 | [diff] [blame] | 88 | default: "" |
Vasyl Saienko | bfe884f | 2017-07-27 14:50:23 +0300 | [diff] [blame] | 89 | SALT_OVERRIDES: |
Vasyl Saienko | 47f2347 | 2017-07-27 14:19:00 +0300 | [diff] [blame] | 90 | type: text |
| 91 | default: "" |
| 92 | description: "YAML with overrides for Salt deployment" |
Mykyta Karpin | 4659084 | 2017-10-03 11:34:02 +0300 | [diff] [blame] | 93 | FORMULA_PKG_REVISION: |
| 94 | type: string |
| 95 | default: "" |
| 96 | description: "Formulas revision to install on Salt Master bootstrap stage" |
ibumarskov | 401fe45 | 2017-11-22 11:42:14 +0400 | [diff] [blame] | 97 | EXTRA_FORMULAS: |
| 98 | type: string |
| 99 | default: "maas memcached ntp nginx collectd sensu heka sphinx mysql grafana libvirt rsyslog glusterfs postfix xtrabackup freeipa prometheus telegraf elasticsearch kibana rundeck devops-portal rsync docker keepalived aptly jenkins gerrit artifactory influxdb horizon" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 100 | |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 101 | # aws api |
| 102 | AWS_STACK_REGION: |
| 103 | type: string |
Tomáš Kukrál | 1de34e3 | 2017-11-29 10:15:37 +0100 | [diff] [blame] | 104 | default: "eu-central-1" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 105 | AWS_API_CREDENTIALS: |
| 106 | type: string |
| 107 | default: "aws-credentials" |
| 108 | AWS_SSH_KEY: |
| 109 | type: string |
| 110 | default: "jenkins-mk" |
| 111 | |
| 112 | # heat |
| 113 | HEAT_STACK_ENVIRONMENT: |
| 114 | type: string |
Ales Komarek | 4d74ebb | 2017-08-07 12:57:14 +0200 | [diff] [blame] | 115 | default: "{{stack_env}}" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 116 | HEAT_STACK_ZONE: |
| 117 | type: string |
| 118 | default: "mcp-mk" |
| 119 | HEAT_STACK_PUBLIC_NET: |
| 120 | type: string |
| 121 | default: "public" |
| 122 | |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 123 | # openstack api |
| 124 | OPENSTACK_API_URL: |
| 125 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 126 | default: "https://cloud-cz.bud.mirantis.net:5000" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 127 | OPENSTACK_API_CREDENTIALS: |
| 128 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 129 | default: "openstack-devcloud-credentials" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 130 | OPENSTACK_API_PROJECT: |
| 131 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 132 | default: "mcp-mk" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 133 | OPENSTACK_API_PROJECT_DOMAIN: |
| 134 | type: string |
Tomáš Kukrál | b6f1522 | 2017-08-02 11:11:56 +0200 | [diff] [blame] | 135 | default: "default" |
Tomáš Kukrál | e087044 | 2017-07-27 18:28:11 +0200 | [diff] [blame] | 136 | OPENSTACK_API_PROJECT_ID: |
| 137 | type: string |
| 138 | default: "" |
| 139 | OPENSTACK_API_USER_DOMAIN: |
| 140 | type: string |
| 141 | default: "default" |
| 142 | |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 143 | OPENSTACK_API_CLIENT: |
| 144 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 145 | default: "" |
Filip Pytloun | 7af94b3 | 2017-03-14 18:38:52 +0100 | [diff] [blame] | 146 | OPENSTACK_API_VERSION: |
| 147 | type: string |
Tomáš Kukrál | f083e81 | 2017-06-21 19:14:11 +0200 | [diff] [blame] | 148 | default: "3" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 149 | |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 150 | # test |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 151 | TEST_K8S_API_SERVER: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 152 | type: string |
| 153 | default: "http://127.0.0.1:8080" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 154 | TEST_K8S_CONFORMANCE_IMAGE: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 155 | type: string |
vrovachev | 7e70980 | 2017-09-15 20:04:26 +0400 | [diff] [blame] | 156 | default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.7.5-2_1504192939316" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 157 | |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 158 | TEST_TEMPEST_IMAGE: |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 159 | type: string |
Tomáš Kukrál | e15675c | 2017-08-03 10:54:00 +0200 | [diff] [blame] | 160 | description: "Tempest docker image" |
Oleksandr Kosse | 05a9811 | 2017-09-28 17:38:55 +0300 | [diff] [blame] | 161 | default: "docker-prod-local.artifactory.mirantis.com/mirantis/oscore/rally-tempest" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 162 | TEST_TEMPEST_TARGET: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 163 | type: string |
| 164 | description: "Node to run tests" |
| 165 | default: "" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 166 | TEST_DOCKER_INSTALL: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 167 | type: boolean |
| 168 | description: "Install docker on the target if true" |
| 169 | default: "true" |
Tomáš Kukrál | 93484d6 | 2017-07-26 10:09:35 +0200 | [diff] [blame] | 170 | TEST_TEMPEST_PATTERN: |
Vasyl Saienko | 68f2e4b | 2017-07-20 12:40:24 +0300 | [diff] [blame] | 171 | type: string |
| 172 | description: "Run tests matched to pattern only" |
| 173 | default: "" |
Filip Pytloun | 260a950 | 2017-03-16 12:47:22 +0100 | [diff] [blame] | 174 | |