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