blob: bd9f2ff208743992d3f7a9b870c54a0fde5f0df0 [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
Maksym Shalamov23605e52018-06-26 15:48:10 +030030- system.manila.client
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 Karpin8abcce32018-03-15 13:43:28 +020036- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010037- cluster.virtual-mcp-pike-ovs.infra.backup.client_common
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020038- cluster.virtual-mcp-pike-ovs
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
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020045 reclass_config_master: 192.168.10.90
46 single_address: 172.16.10.100
47 salt_master_host: 127.0.0.1
48 salt_master_base_environment: prd
49 salt_minion_ca_host: ${linux:network:fqdn}
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020050 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
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-ovs.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-ovs.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>>
130 openstack_gateway:
131 expression: <<node_hostname>>__startswith__gtw
132 node_class:
133 value_template:
134 - cluster.<<node_cluster>>.openstack.gateway
135 node_param:
136 tenant_address:
137 value_template: <<node_tenant_ip>>
138 external_address:
139 value_template: <<node_external_ip>>
140 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300141 openstack_gateway_address:
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200142 value_template: <<node_control_ip>>
Mykyta Karpinc00b2162018-05-29 17:24:25 +0300143 openstack_gateway_node01_external_address:
144 value_template: <<node_external_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200145 openstack_dashboard:
146 expression: <<node_hostname>>__startswith__prx
147 node_class:
148 value_template:
149 - cluster.<<node_cluster>>.openstack.dashboard
150 - cluster.<<node_cluster>>.openstack.proxy
151 cluster_param:
152 openstack_proxy_node01_address:
153 value_template: <<node_control_ip>>
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200154 openstack_share:
155 expression: <<node_hostname>>__startswith__share
156 node_class:
157 value_template:
158 - cluster.<<node_cluster>>.openstack.share
Vasyl Saienko5f39a522018-03-23 15:56:55 +0200159 cluster_param:
160 openstack_share_node01_address:
161 value_template: <<node_control_ip>>
162 openstack_share_node01_share_address:
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200163 value_template: <<node_tenant_ip>>
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200164 openstack_telemetry01:
165 expression: <<node_hostname>>__equals__mdb01
166 cluster_param:
167 openstack_telemetry_node01_address:
168 value_template: <<node_control_ip>>
169 openstack_telemetry02:
170 expression: <<node_hostname>>__equals__mdb02
171 cluster_param:
172 openstack_telemetry_node02_address:
173 value_template: <<node_control_ip>>
174 openstack_telemetry03:
175 expression: <<node_hostname>>__equals__mdb03
176 cluster_param:
177 openstack_telemetry_node03_address:
178 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200179 node:
180 openstack_control_node01:
181 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100182 - cluster.virtual-mcp-pike-ovs.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200183 - service.galera.master.cluster
184 params:
185 mysql_cluster_role: master
186 linux_system_codename: xenial
187 openstack_control_node02:
188 classes:
189 - service.galera.slave.cluster
190 params:
191 mysql_cluster_role: slave
192 linux_system_codename: xenial
193 openstack_control_node03:
194 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100195 - cluster.virtual-mcp-pike-ovs.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200196 - service.galera.slave.cluster
197 params:
198 mysql_cluster_role: slave
199 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200200 openstack_compute_node01:
201 params:
202 single_address: 172.16.10.105
203 tenant_address: 10.1.0.105
204 external_address: 10.16.0.105
205 openstack_compute_node02:
206 params:
207 single_address: 172.16.10.106
208 tenant_address: 10.1.0.106
209 external_address: 10.16.0.106
210 openstack_gateway_node01:
211 params:
212 tenant_address: 10.1.0.110
Mykyta Karpinc00b2162018-05-29 17:24:25 +0300213 external_address: ${_param:openstack_gateway_node01_external_address}
Oleksii Butenko4f729322018-04-16 16:25:32 +0300214 openstack_share_node01:
215 params:
216 single_address: 172.16.10.130
217 tenant_address: 10.1.0.130
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200218 openstack_proxy_node01:
219 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200220 - cluster.virtual-mcp-pike-ovs.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200221 params:
222 linux_system_codename: xenial
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200223 openstack_telemetry_node01:
224 params:
225 # create resources only from 1 controller
226 # to prevent race conditions
227 ceilometer_create_gnocchi_resources: true
228 redis_cluster_role: 'master'
229 openstack_telemetry_node02:
230 params:
231 redis_cluster_role: 'slave'
232 openstack_telemetry_node03:
233 params:
234 redis_cluster_role: 'slave'