blob: 4f54445d5b39876856de974bb6a8b5446e925fb7 [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.sphinx.server.doc.reclass
16- system.keystone.client.single
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020017- system.keystone.client.service.nova21
18- system.keystone.client.service.nova-placement
19- system.keystone.client.service.glare
20- system.keystone.client.service.cinder3
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020021- system.keystone.client.service.designate
Vasyl Saienkoe2a97012018-03-16 13:43:10 +020022- system.keystone.client.service.manila
23- system.keystone.client.service.manila2
Mykyta Karpin10193c52018-03-19 18:17:40 +020024- system.keystone.client.service.aodh
25- system.keystone.client.service.ceilometer
26- system.keystone.client.service.panko
27- system.keystone.client.service.gnocchi
Mykyta Karpin976cc202018-07-11 06:28:24 +030028- system.gnocchi.client
29- system.gnocchi.client.v1.archive_policy.default
Maksym Shalamov23605e52018-06-26 15:48:10 +030030- system.manila.client
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020031- system.reclass.storage.system.openstack_dns_cluster
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020032- 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
Vasyl Saienko5f39a522018-03-23 15:56:55 +020036- system.reclass.storage.system.openstack_share_single
Mykyta Karpin10193c52018-03-19 18:17:40 +020037- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010038- cluster.virtual-mcp-pike-dvr.infra.backup.client_common
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020039- cluster.virtual-mcp-pike-dvr
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020040parameters:
41 _param:
42 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
43 reclass_data_revision: master
44 salt_master_environment_repository: "https://github.com/tcpcloud"
45 salt_master_environment_revision: master
46 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
47 reclass_config_master: 192.168.10.90
48 single_address: 172.16.10.100
49 salt_master_host: 127.0.0.1
50 salt_master_base_environment: prd
51 salt_minion_ca_host: ${linux:network:fqdn}
Maksym Shalamov23605e52018-06-26 15:48:10 +030052 manila_share_type_default_extra_specs:
53 driver_handles_share_servers: False
54 snapshot_support: True
55 create_share_from_snapshot_support : True
56 mount_snapshot_support : True
57 revert_to_snapshot_support : True
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020058 linux:
59 network:
60 interface:
61 ens4:
62 enabled: true
63 type: eth
64 proto: static
65 address: ${_param:single_address}
66 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020067 salt:
68 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010069 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030070 initial_data:
71 engine: backupninja
72 source: ctl03
73 home_dir: /srv/volumes/backup/backupninja
74 host: cfg01.virtual-mcp-pike-dvr.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020075 reactor:
76 reclass/minion/classify:
77 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010078 minion:
79 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030080 initial_data:
81 engine: backupninja
82 source: ctl03
83 home_dir: /srv/volumes/backup/backupninja
84 host: cfg01.virtual-mcp-pike-dvr.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020085 reclass:
86 storage:
87 class_mapping:
88 common_node:
89 expression: all
90 node_param:
91 single_address:
92 value_template: <<node_control_ip>>
93 linux_system_codename:
94 value_template: <<node_os>>
95 salt_master_host:
96 value_template: <<node_master_ip>>
97 infra_config:
98 expression: <<node_hostname>>__startswith__cfg
99 cluster_param:
100 infra_config_address:
101 value_template: <<node_control_ip>>
102 infra_config_deploy_address:
103 value_template: <<node_deploy_ip>>
104 cluster_domain:
105 value_template: <<node_domain>>
106 openstack_control01:
107 expression: <<node_hostname>>__equals__ctl01
108 cluster_param:
109 openstack_control_node01_address:
110 value_template: <<node_control_ip>>
111 openstack_control02:
112 expression: <<node_hostname>>__equals__ctl02
113 cluster_param:
114 openstack_control_node02_address:
115 value_template: <<node_control_ip>>
116 openstack_control03:
117 expression: <<node_hostname>>__equals__ctl03
118 cluster_param:
119 openstack_control_node03_address:
120 value_template: <<node_control_ip>>
121 openstack_compute:
122 expression: <<node_hostname>>__startswith__cmp
123 node_class:
124 value_template:
125 - cluster.<<node_cluster>>.openstack.compute
126 node_param:
127 tenant_address:
128 value_template: <<node_tenant_ip>>
129 external_address:
130 value_template: <<node_external_ip>>
Mykyta Karpin13583022018-03-29 11:13:57 +0300131 openstack_dns01:
132 expression: <<node_hostname>>__equals__dns01
133 cluster_param:
134 openstack_dns_node01_address:
135 value_template: <<node_control_ip>>
136 openstack_dns02:
137 expression: <<node_hostname>>__equals__dns02
138 cluster_param:
139 openstack_dns_node02_address:
140 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200141 openstack_gateway:
142 expression: <<node_hostname>>__startswith__gtw
143 node_class:
144 value_template:
145 - cluster.<<node_cluster>>.openstack.gateway
146 node_param:
147 tenant_address:
148 value_template: <<node_tenant_ip>>
149 external_address:
150 value_template: <<node_external_ip>>
151 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300152 openstack_gateway_address:
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200153 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200154 openstack_dashboard:
155 expression: <<node_hostname>>__startswith__prx
156 node_class:
157 value_template:
158 - cluster.<<node_cluster>>.openstack.dashboard
159 - cluster.<<node_cluster>>.openstack.proxy
160 cluster_param:
161 openstack_proxy_node01_address:
162 value_template: <<node_control_ip>>
Vasyl Saienkoe2a97012018-03-16 13:43:10 +0200163 openstack_share:
164 expression: <<node_hostname>>__startswith__share
165 node_class:
166 value_template:
167 - cluster.<<node_cluster>>.openstack.share
Vasyl Saienko5f39a522018-03-23 15:56:55 +0200168 cluster_param:
169 openstack_share_node01_address:
170 value_template: <<node_control_ip>>
171 openstack_share_node01_share_address:
Vasyl Saienkoe2a97012018-03-16 13:43:10 +0200172 value_template: <<node_tenant_ip>>
Mykyta Karpin10193c52018-03-19 18:17:40 +0200173 openstack_telemetry01:
174 expression: <<node_hostname>>__equals__mdb01
175 cluster_param:
176 openstack_telemetry_node01_address:
177 value_template: <<node_control_ip>>
178 openstack_telemetry02:
179 expression: <<node_hostname>>__equals__mdb02
180 cluster_param:
181 openstack_telemetry_node02_address:
182 value_template: <<node_control_ip>>
183 openstack_telemetry03:
184 expression: <<node_hostname>>__equals__mdb03
185 cluster_param:
186 openstack_telemetry_node03_address:
187 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200188 node:
189 openstack_control_node01:
190 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100191 - cluster.virtual-mcp-pike-dvr.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200192 - service.galera.master.cluster
193 params:
194 mysql_cluster_role: master
195 linux_system_codename: xenial
196 openstack_control_node02:
197 classes:
198 - service.galera.slave.cluster
199 params:
200 mysql_cluster_role: slave
201 linux_system_codename: xenial
202 openstack_control_node03:
203 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100204 - cluster.virtual-mcp-pike-dvr.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200205 - service.galera.slave.cluster
206 params:
207 mysql_cluster_role: slave
208 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200209 openstack_compute_node01:
210 params:
211 single_address: 172.16.10.105
212 tenant_address: 10.1.0.105
213 external_address: 10.16.0.105
214 openstack_compute_node02:
215 params:
216 single_address: 172.16.10.106
217 tenant_address: 10.1.0.106
218 external_address: 10.16.0.106
219 openstack_gateway_node01:
220 params:
221 tenant_address: 10.1.0.110
222 external_address: 10.16.0.110
Oleksii Butenko4f729322018-04-16 16:25:32 +0300223 openstack_share_node01:
224 params:
225 single_address: 172.16.10.130
226 tenant_address: 10.1.0.130
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200227 openstack_proxy_node01:
228 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200229 - cluster.virtual-mcp-pike-dvr.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200230 params:
231 linux_system_codename: xenial
Mykyta Karpin10193c52018-03-19 18:17:40 +0200232 openstack_telemetry_node01:
233 params:
234 # create resources only from 1 controller
235 # to prevent race conditions
236 ceilometer_create_gnocchi_resources: true
237 redis_cluster_role: 'master'
238 openstack_telemetry_node02:
239 params:
240 redis_cluster_role: 'slave'
241 openstack_telemetry_node03:
242 params:
243 redis_cluster_role: 'slave'