blob: 5413b914bb2c469063555bddfaeea9e240e17eeb [file] [log] [blame]
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +00001classes:
2- service.git.client
3- system.linux.system.single
Tatyana Leontovichc07941e2018-03-20 16:04:15 +02004- system.linux.system.single.debian
azvyagintsev98cba952018-07-13 12:40:53 +03005- system.linux.system.repo.mcp.apt_mirantis.saltstack
azvyagintsev03e26b12018-10-22 16:34:31 +03006- system.linux.system.repo.mcp.apt_mirantis.openstack
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +03007- system.linux.system.repo_local.mcp.salt
azvyagintsev03e26b12018-10-22 16:34:31 +03008- system.linux.system.repo.mcp.apt_mirantis.extra
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +03009- system.linux.system.repo.mcp.apt_mirantis.ubuntu
10- system.linux.system.repo.mcp.apt_mirantis.glusterfs
11- system.glusterfs.client.cluster
12- system.glusterfs.client.volume.salt_pki
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000013- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +020014- system.salt.master.api
Tatyana Leontovicha863ef32018-07-27 19:09:34 +030015- system.salt.master.formula.pkg.gnocchi
16- system.salt.master.formula.pkg.panko
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000017- system.salt.minion.ca.salt_master
18- system.salt.minion.cert.proxy
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000019- system.keystone.client.single
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000020- system.keystone.client.service.nova21
21- system.keystone.client.service.nova-placement
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000022- system.keystone.client.service.cinder3
23- system.keystone.client.service.designate
Tatyana Leontovicha863ef32018-07-27 19:09:34 +030024- system.keystone.client.service.aodh
25- system.keystone.client.service.ceilometer
26- system.keystone.client.service.panko
27- system.keystone.client.service.gnocchi
28- system.gnocchi.client
29- system.gnocchi.client.v1.archive_policy.default
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +030030- system.reclass.storage.salt
Tatyana Leontovicha863ef32018-07-27 19:09:34 +030031- system.reclass.storage.system.openstack_dns_cluster
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000032- system.reclass.storage.system.openstack_control_cluster
33- system.reclass.storage.system.openstack_compute_multi
34- system.reclass.storage.system.openstack_gateway_single
35- system.reclass.storage.system.openstack_dashboard_single
Tatyana Leontovicha863ef32018-07-27 19:09:34 +030036- system.reclass.storage.system.openstack_telemetry_cluster
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +030037- system.reclass.storage.system.cicd_control_cluster
38- service.jenkins.client
39- system.jenkins.client.credential.salt
40- system.jenkins.client.job.deploy.openstack
41- cluster.virtual-offline-pike-ovs-dpdk.infra
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010042- cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_common
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000043parameters:
44 _param:
45 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
46 reclass_data_revision: master
47 salt_master_environment_repository: "https://github.com/tcpcloud"
48 salt_master_environment_revision: master
49 reclass_config_master: 192.168.10.90
50 single_address: 172.16.10.100
51 salt_master_host: 127.0.0.1
52 salt_master_base_environment: prd
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +030053 salt_minion_ca_host: cfg01.${_param:cluster_domain}
54 jenkins_git_url: 'git@cfg01:/home/repo'
55 jenkins_gerrit_url: ${_param:jenkins_git_url}
56 salt_api_password: 'hovno12345!'
57 jenkins_salt_api_url: "http://${_param:salt_master_host}:6969"
58 jenkins_pipeline_library_url: git@cfg01:/home/repo/mcp-ci/pipeline-library
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000059 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
60 linux:
61 network:
62 interface:
63 ens4:
64 enabled: true
65 type: eth
66 proto: static
67 address: ${_param:single_address}
68 netmask: 255.255.255.0
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +030069 jenkins:
70 client:
71 lib:
72 pipeline-library:
73 url: ${_param:jenkins_pipeline_library_url}
74 branch: ${_param:jenkins_pipelines_branch}
75 master:
76 host: ${_param:salt_master_host}
77 port: 8081
78 password: r00tme
79 globalenvprop:
80 OFFLINE_DEPLOYMENT:
81 value: "true"
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000082 salt:
83 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010084 backup: true
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030085 initial_data:
86 engine: backupninja
87 source: ctl03
88 home_dir: /srv/volumes/backup/backupninja
89 host: cfg01.virtual-offline-pike-ovs-dpdk
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000090 reactor:
91 reclass/minion/classify:
92 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010093 minion:
94 backup: true
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030095 initial_data:
96 engine: backupninja
97 source: ctl03
98 home_dir: /srv/volumes/backup/backupninja
99 host: cfg01.virtual-offline-pike-ovs-dpdk
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000100 reclass:
101 storage:
102 class_mapping:
103 common_node:
104 expression: all
105 node_param:
106 single_address:
107 value_template: <<node_control_ip>>
108 linux_system_codename:
109 value_template: <<node_os>>
110 salt_master_host:
111 value_template: <<node_master_ip>>
112 infra_config:
113 expression: <<node_hostname>>__startswith__cfg
114 cluster_param:
115 infra_config_address:
116 value_template: <<node_control_ip>>
117 infra_config_deploy_address:
118 value_template: <<node_deploy_ip>>
119 cluster_domain:
120 value_template: <<node_domain>>
121 openstack_control01:
122 expression: <<node_hostname>>__equals__ctl01
123 cluster_param:
124 openstack_control_node01_address:
125 value_template: <<node_control_ip>>
126 openstack_control02:
127 expression: <<node_hostname>>__equals__ctl02
128 cluster_param:
129 openstack_control_node02_address:
130 value_template: <<node_control_ip>>
131 openstack_control03:
132 expression: <<node_hostname>>__equals__ctl03
133 cluster_param:
134 openstack_control_node03_address:
135 value_template: <<node_control_ip>>
136 openstack_compute:
137 expression: <<node_hostname>>__startswith__cmp
138 node_class:
139 value_template:
140 - cluster.<<node_cluster>>.openstack.compute
141 node_param:
142 tenant_address:
143 value_template: <<node_tenant_ip>>
144 external_address:
145 value_template: <<node_external_ip>>
146 openstack_gateway:
147 expression: <<node_hostname>>__startswith__gtw
148 node_class:
149 value_template:
150 - cluster.<<node_cluster>>.openstack.gateway
151 node_param:
152 tenant_address:
153 value_template: <<node_tenant_ip>>
154 external_address:
155 value_template: <<node_external_ip>>
156 cluster_param:
157 openstack_gateway_node01_address:
158 value_template: <<node_control_ip>>
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300159 openstack_dns01:
160 expression: <<node_hostname>>__equals__dns01
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000161 cluster_param:
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300162 openstack_dns_node01_address:
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000163 value_template: <<node_control_ip>>
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300164 openstack_dns02:
165 expression: <<node_hostname>>__equals__dns02
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000166 cluster_param:
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300167 openstack_dns_node02_address:
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000168 value_template: <<node_control_ip>>
169 openstack_dashboard:
170 expression: <<node_hostname>>__startswith__prx
171 node_class:
172 value_template:
173 - cluster.<<node_cluster>>.openstack.dashboard
174 - cluster.<<node_cluster>>.openstack.proxy
175 cluster_param:
176 openstack_proxy_node01_address:
177 value_template: <<node_control_ip>>
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300178 openstack_telemetry01:
179 expression: <<node_hostname>>__equals__mdb01
180 cluster_param:
181 openstack_telemetry_node01_address:
182 value_template: <<node_control_ip>>
183 openstack_telemetry02:
184 expression: <<node_hostname>>__equals__mdb02
185 cluster_param:
186 openstack_telemetry_node02_address:
187 value_template: <<node_control_ip>>
188 openstack_telemetry03:
189 expression: <<node_hostname>>__equals__mdb03
190 cluster_param:
191 openstack_telemetry_node03_address:
192 value_template: <<node_control_ip>>
Tatyana Leontovich3a9e8682018-08-30 19:25:01 +0300193 cicd_control_node01:
194 expression: <<node_hostname>>__equals__cid01
195 cluster_param:
196 cicd_control_node01_address:
197 value_template: <<node_control_ip>>
198 cicd_control_node02:
199 expression: <<node_hostname>>__equals__cid02
200 cluster_param:
201 cicd_control_node02_address:
202 value_template: <<node_control_ip>>
203 cicd_control_node03:
204 expression: <<node_hostname>>__equals__cid03
205 cluster_param:
206 cicd_control_node03_address:
207 value_template: <<node_control_ip>>
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000208 node:
209 openstack_control_node01:
210 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100211 - cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_mysql
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000212 - service.galera.master.cluster
213 params:
214 mysql_cluster_role: master
215 linux_system_codename: xenial
216 openstack_control_node02:
217 classes:
218 - service.galera.slave.cluster
219 params:
220 mysql_cluster_role: slave
221 linux_system_codename: xenial
222 openstack_control_node03:
223 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100224 - cluster.virtual-offline-pike-ovs-dpdk.infra.backup.server
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000225 - service.galera.slave.cluster
226 params:
227 mysql_cluster_role: slave
228 linux_system_codename: xenial
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000229 openstack_compute_node01:
230 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400231 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300232 dpdk0_pci: '"0000:00:05.0"'
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000233 single_address: 172.16.10.105
234 tenant_address: 10.1.0.105
235 external_address: 10.16.0.105
236 openstack_compute_node02:
237 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400238 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300239 dpdk0_pci: '"0000:00:05.0"'
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000240 single_address: 172.16.10.106
241 tenant_address: 10.1.0.106
242 external_address: 10.16.0.106
243 openstack_gateway_node01:
244 params:
245 tenant_address: 10.1.0.110
246 external_address: 10.16.0.110
247 openstack_proxy_node01:
248 classes:
249 - cluster.virtual-offline-pike-ovs-dpdk.openstack.proxy
250 params:
251 linux_system_codename: xenial
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300252 openstack_telemetry_node01:
253 params:
254 # create resources only from 1 controller
255 # to prevent race conditions
256 ceilometer_create_gnocchi_resources: true
257 redis_cluster_role: 'master'
258 openstack_telemetry_node02:
259 params:
260 redis_cluster_role: 'slave'
261 openstack_telemetry_node03:
262 params:
263 redis_cluster_role: 'slave'