blob: 315275804efa3caa75dd346c6a71ed976e79d5d3 [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 Saienko7a031d02018-03-14 15:35:13 +020010- system.salt.master.formula.pkg.manila
Mykyta Karpin8abcce32018-03-15 13:43:28 +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 Saienko7a031d02018-03-14 15:35:13 +020022- system.keystone.client.service.manila
23- system.keystone.client.service.manila2
Mykyta Karpin8abcce32018-03-15 13:43:28 +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 Leontovich8ac23e52017-12-08 20:06:46 +020030- system.reclass.storage.system.openstack_control_cluster
31- system.reclass.storage.system.openstack_compute_multi
32- system.reclass.storage.system.openstack_gateway_single
33- system.reclass.storage.system.openstack_dashboard_single
Vasyl Saienko5f39a522018-03-23 15:56:55 +020034- system.reclass.storage.system.openstack_share_single
Mykyta Karpin8abcce32018-03-15 13:43:28 +020035- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010036- cluster.virtual-mcp-pike-ovs.infra.backup.client_common
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020037- cluster.virtual-mcp-pike-ovs
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020038parameters:
39 _param:
40 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
41 reclass_data_revision: master
42 salt_master_environment_repository: "https://github.com/tcpcloud"
43 salt_master_environment_revision: master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020044 reclass_config_master: 192.168.10.90
45 single_address: 172.16.10.100
46 salt_master_host: 127.0.0.1
47 salt_master_base_environment: prd
48 salt_minion_ca_host: ${linux:network:fqdn}
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020049 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020050 linux:
51 network:
52 interface:
53 ens4:
54 enabled: true
55 type: eth
56 proto: static
57 address: ${_param:single_address}
58 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020059 salt:
60 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010061 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030062 initial_data:
63 engine: backupninja
64 source: ctl03
65 home_dir: /srv/volumes/backup/backupninja
66 host: cfg01.virtual-mcp-pike-ovs.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020067 reactor:
68 reclass/minion/classify:
69 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010070 minion:
71 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030072 initial_data:
73 engine: backupninja
74 source: ctl03
75 home_dir: /srv/volumes/backup/backupninja
76 host: cfg01.virtual-mcp-pike-ovs.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020077 reclass:
78 storage:
79 class_mapping:
80 common_node:
81 expression: all
82 node_param:
83 single_address:
84 value_template: <<node_control_ip>>
85 linux_system_codename:
86 value_template: <<node_os>>
87 salt_master_host:
88 value_template: <<node_master_ip>>
89 infra_config:
90 expression: <<node_hostname>>__startswith__cfg
91 cluster_param:
92 infra_config_address:
93 value_template: <<node_control_ip>>
94 infra_config_deploy_address:
95 value_template: <<node_deploy_ip>>
96 cluster_domain:
97 value_template: <<node_domain>>
98 openstack_control01:
99 expression: <<node_hostname>>__equals__ctl01
100 cluster_param:
101 openstack_control_node01_address:
102 value_template: <<node_control_ip>>
103 openstack_control02:
104 expression: <<node_hostname>>__equals__ctl02
105 cluster_param:
106 openstack_control_node02_address:
107 value_template: <<node_control_ip>>
108 openstack_control03:
109 expression: <<node_hostname>>__equals__ctl03
110 cluster_param:
111 openstack_control_node03_address:
112 value_template: <<node_control_ip>>
113 openstack_compute:
114 expression: <<node_hostname>>__startswith__cmp
115 node_class:
116 value_template:
117 - cluster.<<node_cluster>>.openstack.compute
118 node_param:
119 tenant_address:
120 value_template: <<node_tenant_ip>>
121 external_address:
122 value_template: <<node_external_ip>>
123 openstack_gateway:
124 expression: <<node_hostname>>__startswith__gtw
125 node_class:
126 value_template:
127 - cluster.<<node_cluster>>.openstack.gateway
128 node_param:
129 tenant_address:
130 value_template: <<node_tenant_ip>>
131 external_address:
132 value_template: <<node_external_ip>>
133 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300134 openstack_gateway_address:
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200135 value_template: <<node_control_ip>>
Mykyta Karpinc00b2162018-05-29 17:24:25 +0300136 openstack_gateway_node01_external_address:
137 value_template: <<node_external_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200138 openstack_dashboard:
139 expression: <<node_hostname>>__startswith__prx
140 node_class:
141 value_template:
142 - cluster.<<node_cluster>>.openstack.dashboard
143 - cluster.<<node_cluster>>.openstack.proxy
144 cluster_param:
145 openstack_proxy_node01_address:
146 value_template: <<node_control_ip>>
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200147 openstack_share:
148 expression: <<node_hostname>>__startswith__share
149 node_class:
150 value_template:
151 - cluster.<<node_cluster>>.openstack.share
Vasyl Saienko5f39a522018-03-23 15:56:55 +0200152 cluster_param:
153 openstack_share_node01_address:
154 value_template: <<node_control_ip>>
155 openstack_share_node01_share_address:
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200156 value_template: <<node_tenant_ip>>
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200157 openstack_telemetry01:
158 expression: <<node_hostname>>__equals__mdb01
159 cluster_param:
160 openstack_telemetry_node01_address:
161 value_template: <<node_control_ip>>
162 openstack_telemetry02:
163 expression: <<node_hostname>>__equals__mdb02
164 cluster_param:
165 openstack_telemetry_node02_address:
166 value_template: <<node_control_ip>>
167 openstack_telemetry03:
168 expression: <<node_hostname>>__equals__mdb03
169 cluster_param:
170 openstack_telemetry_node03_address:
171 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200172 node:
173 openstack_control_node01:
174 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100175 - cluster.virtual-mcp-pike-ovs.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200176 - service.galera.master.cluster
177 params:
178 mysql_cluster_role: master
179 linux_system_codename: xenial
180 openstack_control_node02:
181 classes:
182 - service.galera.slave.cluster
183 params:
184 mysql_cluster_role: slave
185 linux_system_codename: xenial
186 openstack_control_node03:
187 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100188 - cluster.virtual-mcp-pike-ovs.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200189 - service.galera.slave.cluster
190 params:
191 mysql_cluster_role: slave
192 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200193 openstack_compute_node01:
194 params:
195 single_address: 172.16.10.105
196 tenant_address: 10.1.0.105
197 external_address: 10.16.0.105
198 openstack_compute_node02:
199 params:
200 single_address: 172.16.10.106
201 tenant_address: 10.1.0.106
202 external_address: 10.16.0.106
203 openstack_gateway_node01:
204 params:
205 tenant_address: 10.1.0.110
Mykyta Karpinc00b2162018-05-29 17:24:25 +0300206 external_address: ${_param:openstack_gateway_node01_external_address}
Oleksii Butenko4f729322018-04-16 16:25:32 +0300207 openstack_share_node01:
208 params:
209 single_address: 172.16.10.130
210 tenant_address: 10.1.0.130
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200211 openstack_proxy_node01:
212 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200213 - cluster.virtual-mcp-pike-ovs.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200214 params:
215 linux_system_codename: xenial
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200216 openstack_telemetry_node01:
217 params:
218 # create resources only from 1 controller
219 # to prevent race conditions
220 ceilometer_create_gnocchi_resources: true
221 redis_cluster_role: 'master'
222 openstack_telemetry_node02:
223 params:
224 redis_cluster_role: 'slave'
225 openstack_telemetry_node03:
226 params:
227 redis_cluster_role: 'slave'