blob: aff272fae2a1227bf7118dbf9ff05b3a15cb6cc6 [file] [log] [blame]
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02001classes:
2- service.git.client
3- system.linux.system.single
Tatyana Leontovichc07941e2018-03-20 16:04:15 +02004- system.linux.system.single.debian
Martin Polreicha0addcc2018-06-25 11:32:52 +02005- system.linux.system.repo.mcp.apt_mirantis.saltstack
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02006- system.linux.system.repo.mcp.apt_mirantis.openstack
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +01007#- system.openssh.client.lab
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02008- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02009- system.salt.master.api
Vasyl Saienkoe2a97012018-03-16 13:43:10 +020010- system.salt.master.formula.pkg.manila
Mykyta Karpin10193c52018-03-19 18:17:40 +020011- system.salt.master.formula.pkg.gnocchi
12- system.salt.master.formula.pkg.panko
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020013- system.reclass.storage.salt
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020014- system.salt.minion.ca.salt_master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020015- system.keystone.client.single
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020016- system.keystone.client.service.nova21
17- system.keystone.client.service.nova-placement
18- system.keystone.client.service.glare
19- system.keystone.client.service.cinder3
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020020- system.keystone.client.service.designate
Vasyl Saienkoe2a97012018-03-16 13:43:10 +020021- system.keystone.client.service.manila
22- system.keystone.client.service.manila2
Mykyta Karpin10193c52018-03-19 18:17:40 +020023- system.keystone.client.service.aodh
24- system.keystone.client.service.ceilometer
25- system.keystone.client.service.panko
26- system.keystone.client.service.gnocchi
Mykyta Karpin976cc202018-07-11 06:28:24 +030027- system.gnocchi.client
28- system.gnocchi.client.v1.archive_policy.default
Maksym Shalamov23605e52018-06-26 15:48:10 +030029- system.manila.client
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020030- system.reclass.storage.system.openstack_dns_cluster
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020031- system.reclass.storage.system.openstack_control_cluster
32- system.reclass.storage.system.openstack_compute_multi
33- system.reclass.storage.system.openstack_gateway_single
34- system.reclass.storage.system.openstack_dashboard_single
Vasyl Saienko5f39a522018-03-23 15:56:55 +020035- system.reclass.storage.system.openstack_share_single
Mykyta Karpin10193c52018-03-19 18:17:40 +020036- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010037- cluster.virtual-mcp-pike-dvr.infra.backup.client_common
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020038- cluster.virtual-mcp-pike-dvr
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020039parameters:
40 _param:
41 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
42 reclass_data_revision: master
43 salt_master_environment_repository: "https://github.com/tcpcloud"
44 salt_master_environment_revision: master
45 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
46 reclass_config_master: 192.168.10.90
47 single_address: 172.16.10.100
48 salt_master_host: 127.0.0.1
49 salt_master_base_environment: prd
50 salt_minion_ca_host: ${linux:network:fqdn}
Maksym Shalamov23605e52018-06-26 15:48:10 +030051 manila_share_type_default_extra_specs:
52 driver_handles_share_servers: False
53 snapshot_support: True
54 create_share_from_snapshot_support : True
55 mount_snapshot_support : True
56 revert_to_snapshot_support : True
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020057 linux:
58 network:
59 interface:
60 ens4:
61 enabled: true
62 type: eth
63 proto: static
64 address: ${_param:single_address}
65 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020066 salt:
67 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010068 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030069 initial_data:
70 engine: backupninja
71 source: ctl03
72 home_dir: /srv/volumes/backup/backupninja
73 host: cfg01.virtual-mcp-pike-dvr.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020074 reactor:
75 reclass/minion/classify:
76 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010077 minion:
78 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030079 initial_data:
80 engine: backupninja
81 source: ctl03
82 home_dir: /srv/volumes/backup/backupninja
83 host: cfg01.virtual-mcp-pike-dvr.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020084 reclass:
85 storage:
86 class_mapping:
87 common_node:
88 expression: all
89 node_param:
90 single_address:
91 value_template: <<node_control_ip>>
92 linux_system_codename:
93 value_template: <<node_os>>
94 salt_master_host:
95 value_template: <<node_master_ip>>
96 infra_config:
97 expression: <<node_hostname>>__startswith__cfg
98 cluster_param:
99 infra_config_address:
100 value_template: <<node_control_ip>>
101 infra_config_deploy_address:
102 value_template: <<node_deploy_ip>>
103 cluster_domain:
104 value_template: <<node_domain>>
105 openstack_control01:
106 expression: <<node_hostname>>__equals__ctl01
107 cluster_param:
108 openstack_control_node01_address:
109 value_template: <<node_control_ip>>
110 openstack_control02:
111 expression: <<node_hostname>>__equals__ctl02
112 cluster_param:
113 openstack_control_node02_address:
114 value_template: <<node_control_ip>>
115 openstack_control03:
116 expression: <<node_hostname>>__equals__ctl03
117 cluster_param:
118 openstack_control_node03_address:
119 value_template: <<node_control_ip>>
120 openstack_compute:
121 expression: <<node_hostname>>__startswith__cmp
122 node_class:
123 value_template:
124 - cluster.<<node_cluster>>.openstack.compute
125 node_param:
126 tenant_address:
127 value_template: <<node_tenant_ip>>
128 external_address:
129 value_template: <<node_external_ip>>
Mykyta Karpin13583022018-03-29 11:13:57 +0300130 openstack_dns01:
131 expression: <<node_hostname>>__equals__dns01
132 cluster_param:
133 openstack_dns_node01_address:
134 value_template: <<node_control_ip>>
135 openstack_dns02:
136 expression: <<node_hostname>>__equals__dns02
137 cluster_param:
138 openstack_dns_node02_address:
139 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200140 openstack_gateway:
141 expression: <<node_hostname>>__startswith__gtw
142 node_class:
143 value_template:
144 - cluster.<<node_cluster>>.openstack.gateway
145 node_param:
146 tenant_address:
147 value_template: <<node_tenant_ip>>
148 external_address:
149 value_template: <<node_external_ip>>
150 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300151 openstack_gateway_address:
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200152 value_template: <<node_control_ip>>
Mykyta Karpin058dc732018-07-19 14:34:31 +0300153 openstack_gateway_node01_external_address:
154 value_template: <<node_external_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200155 openstack_dashboard:
156 expression: <<node_hostname>>__startswith__prx
157 node_class:
158 value_template:
159 - cluster.<<node_cluster>>.openstack.dashboard
160 - cluster.<<node_cluster>>.openstack.proxy
161 cluster_param:
162 openstack_proxy_node01_address:
163 value_template: <<node_control_ip>>
Vasyl Saienkoe2a97012018-03-16 13:43:10 +0200164 openstack_share:
165 expression: <<node_hostname>>__startswith__share
166 node_class:
167 value_template:
168 - cluster.<<node_cluster>>.openstack.share
Vasyl Saienko5f39a522018-03-23 15:56:55 +0200169 cluster_param:
170 openstack_share_node01_address:
171 value_template: <<node_control_ip>>
172 openstack_share_node01_share_address:
Vasyl Saienkoe2a97012018-03-16 13:43:10 +0200173 value_template: <<node_tenant_ip>>
Mykyta Karpin10193c52018-03-19 18:17:40 +0200174 openstack_telemetry01:
175 expression: <<node_hostname>>__equals__mdb01
176 cluster_param:
177 openstack_telemetry_node01_address:
178 value_template: <<node_control_ip>>
179 openstack_telemetry02:
180 expression: <<node_hostname>>__equals__mdb02
181 cluster_param:
182 openstack_telemetry_node02_address:
183 value_template: <<node_control_ip>>
184 openstack_telemetry03:
185 expression: <<node_hostname>>__equals__mdb03
186 cluster_param:
187 openstack_telemetry_node03_address:
188 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200189 node:
190 openstack_control_node01:
191 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100192 - cluster.virtual-mcp-pike-dvr.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200193 - service.galera.master.cluster
194 params:
195 mysql_cluster_role: master
196 linux_system_codename: xenial
197 openstack_control_node02:
198 classes:
199 - service.galera.slave.cluster
200 params:
201 mysql_cluster_role: slave
202 linux_system_codename: xenial
203 openstack_control_node03:
204 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100205 - cluster.virtual-mcp-pike-dvr.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200206 - service.galera.slave.cluster
207 params:
208 mysql_cluster_role: slave
209 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200210 openstack_compute_node01:
211 params:
212 single_address: 172.16.10.105
213 tenant_address: 10.1.0.105
214 external_address: 10.16.0.105
215 openstack_compute_node02:
216 params:
217 single_address: 172.16.10.106
218 tenant_address: 10.1.0.106
219 external_address: 10.16.0.106
220 openstack_gateway_node01:
221 params:
222 tenant_address: 10.1.0.110
Mykyta Karpin058dc732018-07-19 14:34:31 +0300223 external_address: ${_param:openstack_gateway_node01_external_address}
Oleksii Butenko4f729322018-04-16 16:25:32 +0300224 openstack_share_node01:
225 params:
226 single_address: 172.16.10.130
227 tenant_address: 10.1.0.130
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200228 openstack_proxy_node01:
229 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200230 - cluster.virtual-mcp-pike-dvr.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200231 params:
232 linux_system_codename: xenial
Mykyta Karpin10193c52018-03-19 18:17:40 +0200233 openstack_telemetry_node01:
234 params:
235 # create resources only from 1 controller
236 # to prevent race conditions
237 ceilometer_create_gnocchi_resources: true
238 redis_cluster_role: 'master'
239 openstack_telemetry_node02:
240 params:
241 redis_cluster_role: 'slave'
242 openstack_telemetry_node03:
243 params:
244 redis_cluster_role: 'slave'