blob: b400c3280c882e361968c182a751d18280e4406c [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
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}
51 linux:
52 network:
53 interface:
54 ens4:
55 enabled: true
56 type: eth
57 proto: static
58 address: ${_param:single_address}
59 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020060 salt:
61 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010062 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030063 initial_data:
64 engine: backupninja
65 source: ctl03
66 home_dir: /srv/volumes/backup/backupninja
67 host: cfg01.virtual-mcp-pike-dvr.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020068 reactor:
69 reclass/minion/classify:
70 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010071 minion:
72 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030073 initial_data:
74 engine: backupninja
75 source: ctl03
76 home_dir: /srv/volumes/backup/backupninja
77 host: cfg01.virtual-mcp-pike-dvr.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020078 reclass:
79 storage:
80 class_mapping:
81 common_node:
82 expression: all
83 node_param:
84 single_address:
85 value_template: <<node_control_ip>>
86 linux_system_codename:
87 value_template: <<node_os>>
88 salt_master_host:
89 value_template: <<node_master_ip>>
90 infra_config:
91 expression: <<node_hostname>>__startswith__cfg
92 cluster_param:
93 infra_config_address:
94 value_template: <<node_control_ip>>
95 infra_config_deploy_address:
96 value_template: <<node_deploy_ip>>
97 cluster_domain:
98 value_template: <<node_domain>>
99 openstack_control01:
100 expression: <<node_hostname>>__equals__ctl01
101 cluster_param:
102 openstack_control_node01_address:
103 value_template: <<node_control_ip>>
104 openstack_control02:
105 expression: <<node_hostname>>__equals__ctl02
106 cluster_param:
107 openstack_control_node02_address:
108 value_template: <<node_control_ip>>
109 openstack_control03:
110 expression: <<node_hostname>>__equals__ctl03
111 cluster_param:
112 openstack_control_node03_address:
113 value_template: <<node_control_ip>>
114 openstack_compute:
115 expression: <<node_hostname>>__startswith__cmp
116 node_class:
117 value_template:
118 - cluster.<<node_cluster>>.openstack.compute
119 node_param:
120 tenant_address:
121 value_template: <<node_tenant_ip>>
122 external_address:
123 value_template: <<node_external_ip>>
Mykyta Karpin13583022018-03-29 11:13:57 +0300124 openstack_dns01:
125 expression: <<node_hostname>>__equals__dns01
126 cluster_param:
127 openstack_dns_node01_address:
128 value_template: <<node_control_ip>>
129 openstack_dns02:
130 expression: <<node_hostname>>__equals__dns02
131 cluster_param:
132 openstack_dns_node02_address:
133 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200134 openstack_gateway:
135 expression: <<node_hostname>>__startswith__gtw
136 node_class:
137 value_template:
138 - cluster.<<node_cluster>>.openstack.gateway
139 node_param:
140 tenant_address:
141 value_template: <<node_tenant_ip>>
142 external_address:
143 value_template: <<node_external_ip>>
144 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300145 openstack_gateway_address:
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200146 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200147 openstack_dashboard:
148 expression: <<node_hostname>>__startswith__prx
149 node_class:
150 value_template:
151 - cluster.<<node_cluster>>.openstack.dashboard
152 - cluster.<<node_cluster>>.openstack.proxy
153 cluster_param:
154 openstack_proxy_node01_address:
155 value_template: <<node_control_ip>>
Vasyl Saienkoe2a97012018-03-16 13:43:10 +0200156 openstack_share:
157 expression: <<node_hostname>>__startswith__share
158 node_class:
159 value_template:
160 - cluster.<<node_cluster>>.openstack.share
Vasyl Saienko5f39a522018-03-23 15:56:55 +0200161 cluster_param:
162 openstack_share_node01_address:
163 value_template: <<node_control_ip>>
164 openstack_share_node01_share_address:
Vasyl Saienkoe2a97012018-03-16 13:43:10 +0200165 value_template: <<node_tenant_ip>>
Mykyta Karpin10193c52018-03-19 18:17:40 +0200166 openstack_telemetry01:
167 expression: <<node_hostname>>__equals__mdb01
168 cluster_param:
169 openstack_telemetry_node01_address:
170 value_template: <<node_control_ip>>
171 openstack_telemetry02:
172 expression: <<node_hostname>>__equals__mdb02
173 cluster_param:
174 openstack_telemetry_node02_address:
175 value_template: <<node_control_ip>>
176 openstack_telemetry03:
177 expression: <<node_hostname>>__equals__mdb03
178 cluster_param:
179 openstack_telemetry_node03_address:
180 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200181 node:
182 openstack_control_node01:
183 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100184 - cluster.virtual-mcp-pike-dvr.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200185 - service.galera.master.cluster
186 params:
187 mysql_cluster_role: master
188 linux_system_codename: xenial
189 openstack_control_node02:
190 classes:
191 - service.galera.slave.cluster
192 params:
193 mysql_cluster_role: slave
194 linux_system_codename: xenial
195 openstack_control_node03:
196 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100197 - cluster.virtual-mcp-pike-dvr.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200198 - service.galera.slave.cluster
199 params:
200 mysql_cluster_role: slave
201 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200202 openstack_compute_node01:
203 params:
204 single_address: 172.16.10.105
205 tenant_address: 10.1.0.105
206 external_address: 10.16.0.105
207 openstack_compute_node02:
208 params:
209 single_address: 172.16.10.106
210 tenant_address: 10.1.0.106
211 external_address: 10.16.0.106
212 openstack_gateway_node01:
213 params:
214 tenant_address: 10.1.0.110
215 external_address: 10.16.0.110
Oleksii Butenko4f729322018-04-16 16:25:32 +0300216 openstack_share_node01:
217 params:
218 single_address: 172.16.10.130
219 tenant_address: 10.1.0.130
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200220 openstack_proxy_node01:
221 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200222 - cluster.virtual-mcp-pike-dvr.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200223 params:
224 linux_system_codename: xenial
Mykyta Karpin10193c52018-03-19 18:17:40 +0200225 openstack_telemetry_node01:
226 params:
227 # create resources only from 1 controller
228 # to prevent race conditions
229 ceilometer_create_gnocchi_resources: true
230 redis_cluster_role: 'master'
231 openstack_telemetry_node02:
232 params:
233 redis_cluster_role: 'slave'
234 openstack_telemetry_node03:
235 params:
236 redis_cluster_role: 'slave'