blob: 75bab431be9ac0b1c317d12a66a5ccc1cac83e0a [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"
20 credentials: "gerrit"
Tomáš Kukrále0870442017-07-27 18:28:11 +020021 script: cloud-deploy-pipeline.groovy
Tomáš Kukrál903a7f62017-04-13 13:21:30 +020022 trigger:
23 timer:
Tomáš Kukrále15675c2017-08-03 10:54:00 +020024 spec: "{{job_timer}}"
Filip Pytloun7af94b32017-03-14 18:38:52 +010025 param:
Tomáš Kukrále0870442017-07-27 18:28:11 +020026 # general parameters
27 ASK_ON_ERROR:
28 type: boolean
29 default: 'false'
30
31 # deployments
32 STACK_NAME:
33 type: string
34 description: Heat stack name. Will be generated if missing.
Filip Pytloun260a9502017-03-16 12:47:22 +010035 STACK_TYPE:
36 type: string
37 default: "{{stack_type}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020038 STACK_INSTALL:
Filip Pytloun260a9502017-03-16 12:47:22 +010039 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020040 default: "{{stack_install}}"
Jakub Josefca7e4562017-05-24 11:40:35 +020041 STACK_TEST:
Filip Pytloun260a9502017-03-16 12:47:22 +010042 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020043 default: "{{stack_test}}"
Tomáš Kukrále0870442017-07-27 18:28:11 +020044 STACK_REUSE:
45 type: boolean
46 default: 'false'
47 STACK_DELETE:
48 type: boolean
49 default: 'true'
50 description: "Don't enable it if you need to use the lab after"
51 STACK_COMPUTE_COUNT:
52 type: string
53 default: '2'
Filip Pytloun260a9502017-03-16 12:47:22 +010054
Tomáš Kukrále0870442017-07-27 18:28:11 +020055 STACK_TEMPLATE:
56 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +020057 default: "{{stack_name}}"
Jakub Josef43f34432017-05-23 19:16:49 +020058 STACK_TEMPLATE_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010059 type: string
Tomáš Kukrálcf72c8d2017-04-19 21:50:05 +020060 default: "${_param:jenkins_gerrit_url}/mk/heat-templates"
Jakub Josef43f34432017-05-23 19:16:49 +020061 STACK_TEMPLATE_CREDENTIALS:
Filip Pytloun7af94b32017-03-14 18:38:52 +010062 type: string
63 default: "gerrit"
Jakub Josef43f34432017-05-23 19:16:49 +020064 STACK_TEMPLATE_BRANCH:
Filip Pytloun7af94b32017-03-14 18:38:52 +010065 type: string
Tomáš Kukrál394cdbf2017-03-29 16:35:37 +020066 default: "master"
Jakub Josefca7e4562017-05-24 11:40:35 +020067 STACK_CLEANUP_JOB:
68 type: string
Jakub Josef1c271232017-06-05 11:39:34 +020069 default: 'deploy-stack-cleanup'
Filip Pytloun7af94b32017-03-14 18:38:52 +010070
Tomáš Kukrále0870442017-07-27 18:28:11 +020071 # salt
Filip Pytloun7af94b32017-03-14 18:38:52 +010072 SALT_MASTER_CREDENTIALS:
73 type: string
74 default: "salt-qa-credentials"
Filip Pytloun260a9502017-03-16 12:47:22 +010075 SALT_MASTER_URL:
Filip Pytloun7af94b32017-03-14 18:38:52 +010076 type: string
Filip Pytlounaa456012017-03-24 12:49:25 +010077 default: ""
Vasyl Saienkobfe884f2017-07-27 14:50:23 +030078 SALT_OVERRIDES:
Vasyl Saienko47f23472017-07-27 14:19:00 +030079 type: text
80 default: ""
81 description: "YAML with overrides for Salt deployment"
Filip Pytloun7af94b32017-03-14 18:38:52 +010082
Tomáš Kukrále0870442017-07-27 18:28:11 +020083 # aws api
84 AWS_STACK_REGION:
85 type: string
86 default: "us-west-2"
87 AWS_API_CREDENTIALS:
88 type: string
89 default: "aws-credentials"
90 AWS_SSH_KEY:
91 type: string
92 default: "jenkins-mk"
93
94 # heat
95 HEAT_STACK_ENVIRONMENT:
96 type: string
Ales Komarek4d74ebb2017-08-07 12:57:14 +020097 default: "{{stack_env}}"
Tomáš Kukrále0870442017-07-27 18:28:11 +020098 HEAT_STACK_ZONE:
99 type: string
100 default: "mcp-mk"
101 HEAT_STACK_PUBLIC_NET:
102 type: string
103 default: "public"
104
Filip Pytloun7af94b32017-03-14 18:38:52 +0100105 # openstack api
106 OPENSTACK_API_URL:
107 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200108 default: "https://cloud-cz.bud.mirantis.net:5000"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100109 OPENSTACK_API_CREDENTIALS:
110 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200111 default: "openstack-devcloud-credentials"
Filip Pytloun7af94b32017-03-14 18:38:52 +0100112 OPENSTACK_API_PROJECT:
113 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200114 default: "mcp-mk"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200115 OPENSTACK_API_PROJECT_DOMAIN:
116 type: string
Tomáš Kukrálb6f15222017-08-02 11:11:56 +0200117 default: "default"
Tomáš Kukrále0870442017-07-27 18:28:11 +0200118 OPENSTACK_API_PROJECT_ID:
119 type: string
120 default: ""
121 OPENSTACK_API_USER_DOMAIN:
122 type: string
123 default: "default"
124
Filip Pytloun7af94b32017-03-14 18:38:52 +0100125 OPENSTACK_API_CLIENT:
126 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200127 default: ""
Filip Pytloun7af94b32017-03-14 18:38:52 +0100128 OPENSTACK_API_VERSION:
129 type: string
Tomáš Kukrálf083e812017-06-21 19:14:11 +0200130 default: "3"
Filip Pytloun260a9502017-03-16 12:47:22 +0100131
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200132 # test
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200133 TEST_K8S_API_SERVER:
Filip Pytloun260a9502017-03-16 12:47:22 +0100134 type: string
135 default: "http://127.0.0.1:8080"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200136 TEST_K8S_CONFORMANCE_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100137 type: string
138 default: "docker-dev-virtual.docker.mirantis.net/mirantis/kubernetes/k8s-conformance:v1.5.1-3_1482332392819"
139
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200140 TEST_TEMPEST_IMAGE:
Filip Pytloun260a9502017-03-16 12:47:22 +0100141 type: string
Tomáš Kukrále15675c2017-08-03 10:54:00 +0200142 description: "Tempest docker image"
Filip Pytloun260a9502017-03-16 12:47:22 +0100143 default: "sandbox-docker-prod-local.docker.mirantis.net/mirantis/rally_tempest:0.1"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200144 TEST_TEMPEST_TARGET:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300145 type: string
146 description: "Node to run tests"
147 default: ""
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200148 TEST_DOCKER_INSTALL:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300149 type: boolean
150 description: "Install docker on the target if true"
151 default: "true"
Tomáš Kukrál93484d62017-07-26 10:09:35 +0200152 TEST_TEMPEST_PATTERN:
Vasyl Saienko68f2e4b2017-07-20 12:40:24 +0300153 type: string
154 description: "Run tests matched to pattern only"
155 default: ""
Filip Pytloun260a9502017-03-16 12:47:22 +0100156