blob: a6f6abe23dd6bec35c99e446c5c5c50d7b169717 [file] [log] [blame]
Filip Pytloun7af94b32017-03-14 18:38:52 +01001parameters:
Filip Pytloun260a9502017-03-16 12:47:22 +01002 _param:
Tomáš Kukrále15675c2017-08-03 10:54:00 +02003 jenkins_deploy_jobs: []
Filip Pytloun7af94b32017-03-14 18:38:52 +01004 jenkins:
5 client:
6 job_template:
Tomáš Kukrále15675c2017-08-03 10:54:00 +02007 deploy_template:
8 name: deploy-{{stack_type}}-{{stack_name}}
9 jobs: ${_param:jenkins_deploy_jobs}
Filip Pytloun7af94b32017-03-14 18:38:52 +010010 template:
11 type: workflow-scm
Filip Pytloun260a9502017-03-16 12:47:22 +010012 discard:
13 build:
14 keep_num: 20
Filip Pytloun7af94b32017-03-14 18:38:52 +010015 concurrent: true
Tomáš Kukrále15675c2017-08-03 10:54:00 +020016 display_name: "Deploy - {{stack_name}} {{stack_type}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010017 scm:
18 type: git
19 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
Jakub Josef7938b532017-12-12 18:02:03 +010020 branch: "${_param:jenkins_pipelines_branch}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010021 credentials: "gerrit"
Tomáš Kukrále0870442017-07-27 18:28:11 +020022 script: cloud-deploy-pipeline.groovy
Tomáš Kukrál903a7f62017-04-13 13:21:30 +020023 trigger:
24 timer:
Tomáš Kukrále15675c2017-08-03 10:54:00 +020025 spec: "{{job_timer}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010026 param:
Tomáš Kukrále0870442017-07-27 18:28:11 +020027 # general parameters
28 ASK_ON_ERROR:
29 type: boolean
30 default: 'false'
Oleg Grigorov7aee3582017-10-31 16:02:19 +020031 SLAVE_NODE:
32 type: string
33 default: 'python'
Tomáš Kukrále0870442017-07-27 18:28:11 +020034
35 # deployments
36 STACK_NAME:
37 type: string
38 description: Heat stack name. Will be generated if missing.
Filip Pytloun260a9502017-03-16 12:47:22 +010039 STACK_TYPE:
40 type: string
41 default: "{{stack_type}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020042 STACK_INSTALL:
Filip Pytloun260a9502017-03-16 12:47:22 +010043 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020044 default: "{{stack_install}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020045 STACK_TEST:
Filip Pytloun260a9502017-03-16 12:47:22 +010046 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020047 default: "{{stack_test}}"
Tomáš Kukrále0870442017-07-27 18:28:11 +020048 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 Pytloun260a9502017-03-16 12:47:22 +010058
Tomáš Kukrále0870442017-07-27 18:28:11 +020059 STACK_TEMPLATE:
60 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020061 default: "{{stack_name}}"
Jakub Josef43f34432017-05-23 19:16:49 +020062 STACK_TEMPLATE_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010063 type: string
Tomáš Kukrálcf72c8d2017-04-19 21:50:05 +020064 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
Jakub Josef43f34432017-05-23 19:16:49 +020065 STACK_TEMPLATE_CREDENTIALS:
Filip Pytloun7af94b32017-03-14 18:38:52 +010066 type: string
67 default: "gerrit"
Jakub Josef43f34432017-05-23 19:16:49 +020068 STACK_TEMPLATE_BRANCH:
Filip Pytloun7af94b32017-03-14 18:38:52 +010069 type: string
Tomáš Kukrál394cdbf2017-03-29 16:35:37 +020070 default: "master"
Jakub Josefca7e4562017-05-24 11:40:35 +020071 STACK_CLEANUP_JOB:
72 type: string
Jakub Josef1c271232017-06-05 11:39:34 +020073 default: 'deploy-stack-cleanup'
Filip Pytloun7af94b32017-03-14 18:38:52 +010074
Mykyta Karpinc54ab522017-11-30 12:48:29 +010075 STACK_RECLASS_ADDRESS:
76 type: string
77 default: ""
ibumarskovff68f412017-09-11 13:20:15 +040078 STACK_RECLASS_BRANCH:
79 type: string
80 default: ""
81
Tomáš Kukrále0870442017-07-27 18:28:11 +020082 # salt
Filip Pytloun7af94b32017-03-14 18:38:52 +010083 SALT_MASTER_CREDENTIALS:
84 type: string
85 default: "salt-qa-credentials"
Filip Pytloun260a9502017-03-16 12:47:22 +010086 SALT_MASTER_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010087 type: string
Filip Pytlounaa456012017-03-24 12:49:25 +010088 default: ""
Vasyl Saienkobfe884f2017-07-27 14:50:23 +030089 SALT_OVERRIDES:
Vasyl Saienko47f23472017-07-27 14:19:00 +030090 type: text
91 default: ""
92 description: "YAML with overrides for Salt deployment"
Mykyta Karpin46590842017-10-03 11:34:02 +030093 FORMULA_PKG_REVISION:
94 type: string
95 default: ""
96 description: "Formulas revision to install on Salt Master bootstrap stage"
ibumarskov401fe452017-11-22 11:42:14 +040097 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 Pytloun7af94b32017-03-14 18:38:52 +0100100
Tomáš Kukrále0870442017-07-27 18:28:11 +0200101 # aws api
102 AWS_STACK_REGION:
103 type: string
Tomáš Kukrál1de34e32017-11-29 10:15:37 +0100104 default: "eu-central-1"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200105 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 Komarek4d74ebb2017-08-07 12:57:14 +0200115 default: "{{stack_env}}"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200116 HEAT_STACK_ZONE:
117 type: string
118 default: "mcp-mk"
119 HEAT_STACK_PUBLIC_NET:
120 type: string
121 default: "public"
122
Filip Pytloun7af94b32017-03-14 18:38:52 +0100123 # openstack api
124 OPENSTACK_API_URL:
125 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200126 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100127 OPENSTACK_API_CREDENTIALS:
128 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200129 default: "openstack-devcloud-credentials"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100130 OPENSTACK_API_PROJECT:
131 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200132 default: "mcp-mk"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200133 OPENSTACK_API_PROJECT_DOMAIN:
134 type: string
Tomáš Kukrálb6f15222017-08-02 11:11:56 +0200135 default: "default"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200136 OPENSTACK_API_PROJECT_ID:
137 type: string
138 default: ""
139 OPENSTACK_API_USER_DOMAIN:
140 type: string
141 default: "default"
142
Filip Pytloun7af94b32017-03-14 18:38:52 +0100143 OPENSTACK_API_CLIENT:
144 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200145 default: ""
Filip Pytloun7af94b32017-03-14 18:38:52 +0100146 OPENSTACK_API_VERSION:
147 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200148 default: "3"
Filip Pytloun260a9502017-03-16 12:47:22 +0100149
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200150 # test
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200151 TEST_K8S_API_SERVER:
Filip Pytloun260a9502017-03-16 12:47:22 +0100152 type: string
153 default: "http://127.0.0.1:8080"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200154 TEST_K8S_CONFORMANCE_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100155 type: string
vrovachev7e709802017-09-15 20:04:26 +0400156 default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.7.5-2_1504192939316"
Filip Pytloun260a9502017-03-16 12:47:22 +0100157
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200158 TEST_TEMPEST_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100159 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200160 description: "Tempest docker image"
Oleksandr Kosse05a98112017-09-28 17:38:55 +0300161 default: "docker-prod-local.artifactory.mirantis.com/mirantis/oscore/rally-tempest"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200162 TEST_TEMPEST_TARGET:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300163 type: string
164 description: "Node to run tests"
165 default: ""
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200166 TEST_DOCKER_INSTALL:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300167 type: boolean
168 description: "Install docker on the target if true"
169 default: "true"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200170 TEST_TEMPEST_PATTERN:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300171 type: string
172 description: "Run tests matched to pattern only"
173 default: ""
Filip Pytloun260a9502017-03-16 12:47:22 +0100174