blob: 49f3406a06f144e411070ce6e101e3a51001b8b5 [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.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 Saienko7a031d02018-03-14 15:35:13 +020021- system.keystone.client.service.manila
22- system.keystone.client.service.manila2
Mykyta Karpin8abcce32018-03-15 13:43:28 +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 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"
Maksym Shalamov23605e52018-06-26 15:48:10 +030050 manila_share_type_default_extra_specs:
51 driver_handles_share_servers: False
52 snapshot_support: True
53 create_share_from_snapshot_support : True
54 mount_snapshot_support : True
55 revert_to_snapshot_support : True
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020056 linux:
57 network:
58 interface:
59 ens4:
60 enabled: true
61 type: eth
62 proto: static
63 address: ${_param:single_address}
64 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020065 salt:
66 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010067 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030068 initial_data:
69 engine: backupninja
70 source: ctl03
71 home_dir: /srv/volumes/backup/backupninja
72 host: cfg01.virtual-mcp-pike-ovs.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020073 reactor:
74 reclass/minion/classify:
75 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010076 minion:
77 backup: true
Tatyana Leontovicha331bc52018-06-12 20:05:48 +030078 initial_data:
79 engine: backupninja
80 source: ctl03
81 home_dir: /srv/volumes/backup/backupninja
82 host: cfg01.virtual-mcp-pike-ovs.local
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020083 reclass:
84 storage:
85 class_mapping:
86 common_node:
87 expression: all
88 node_param:
89 single_address:
90 value_template: <<node_control_ip>>
91 linux_system_codename:
92 value_template: <<node_os>>
93 salt_master_host:
94 value_template: <<node_master_ip>>
95 infra_config:
96 expression: <<node_hostname>>__startswith__cfg
97 cluster_param:
98 infra_config_address:
99 value_template: <<node_control_ip>>
100 infra_config_deploy_address:
101 value_template: <<node_deploy_ip>>
102 cluster_domain:
103 value_template: <<node_domain>>
104 openstack_control01:
105 expression: <<node_hostname>>__equals__ctl01
106 cluster_param:
107 openstack_control_node01_address:
108 value_template: <<node_control_ip>>
109 openstack_control02:
110 expression: <<node_hostname>>__equals__ctl02
111 cluster_param:
112 openstack_control_node02_address:
113 value_template: <<node_control_ip>>
114 openstack_control03:
115 expression: <<node_hostname>>__equals__ctl03
116 cluster_param:
117 openstack_control_node03_address:
118 value_template: <<node_control_ip>>
119 openstack_compute:
120 expression: <<node_hostname>>__startswith__cmp
121 node_class:
122 value_template:
123 - cluster.<<node_cluster>>.openstack.compute
124 node_param:
125 tenant_address:
126 value_template: <<node_tenant_ip>>
127 external_address:
128 value_template: <<node_external_ip>>
129 openstack_gateway:
130 expression: <<node_hostname>>__startswith__gtw
131 node_class:
132 value_template:
133 - cluster.<<node_cluster>>.openstack.gateway
134 node_param:
135 tenant_address:
136 value_template: <<node_tenant_ip>>
137 external_address:
138 value_template: <<node_external_ip>>
139 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300140 openstack_gateway_address:
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200141 value_template: <<node_control_ip>>
Mykyta Karpinc00b2162018-05-29 17:24:25 +0300142 openstack_gateway_node01_external_address:
143 value_template: <<node_external_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200144 openstack_dashboard:
145 expression: <<node_hostname>>__startswith__prx
146 node_class:
147 value_template:
148 - cluster.<<node_cluster>>.openstack.dashboard
149 - cluster.<<node_cluster>>.openstack.proxy
150 cluster_param:
151 openstack_proxy_node01_address:
152 value_template: <<node_control_ip>>
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200153 openstack_share:
154 expression: <<node_hostname>>__startswith__share
155 node_class:
156 value_template:
157 - cluster.<<node_cluster>>.openstack.share
Vasyl Saienko5f39a522018-03-23 15:56:55 +0200158 cluster_param:
159 openstack_share_node01_address:
160 value_template: <<node_control_ip>>
161 openstack_share_node01_share_address:
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200162 value_template: <<node_tenant_ip>>
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200163 openstack_telemetry01:
164 expression: <<node_hostname>>__equals__mdb01
165 cluster_param:
166 openstack_telemetry_node01_address:
167 value_template: <<node_control_ip>>
168 openstack_telemetry02:
169 expression: <<node_hostname>>__equals__mdb02
170 cluster_param:
171 openstack_telemetry_node02_address:
172 value_template: <<node_control_ip>>
173 openstack_telemetry03:
174 expression: <<node_hostname>>__equals__mdb03
175 cluster_param:
176 openstack_telemetry_node03_address:
177 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200178 node:
179 openstack_control_node01:
180 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100181 - cluster.virtual-mcp-pike-ovs.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200182 - service.galera.master.cluster
183 params:
184 mysql_cluster_role: master
185 linux_system_codename: xenial
186 openstack_control_node02:
187 classes:
188 - service.galera.slave.cluster
189 params:
190 mysql_cluster_role: slave
191 linux_system_codename: xenial
192 openstack_control_node03:
193 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100194 - cluster.virtual-mcp-pike-ovs.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200195 - service.galera.slave.cluster
196 params:
197 mysql_cluster_role: slave
198 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200199 openstack_compute_node01:
200 params:
201 single_address: 172.16.10.105
202 tenant_address: 10.1.0.105
203 external_address: 10.16.0.105
204 openstack_compute_node02:
205 params:
206 single_address: 172.16.10.106
207 tenant_address: 10.1.0.106
208 external_address: 10.16.0.106
209 openstack_gateway_node01:
210 params:
211 tenant_address: 10.1.0.110
Mykyta Karpinc00b2162018-05-29 17:24:25 +0300212 external_address: ${_param:openstack_gateway_node01_external_address}
Oleksii Butenko4f729322018-04-16 16:25:32 +0300213 openstack_share_node01:
214 params:
215 single_address: 172.16.10.130
216 tenant_address: 10.1.0.130
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200217 openstack_proxy_node01:
218 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200219 - cluster.virtual-mcp-pike-ovs.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200220 params:
221 linux_system_codename: xenial
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200222 openstack_telemetry_node01:
223 params:
224 # create resources only from 1 controller
225 # to prevent race conditions
226 ceilometer_create_gnocchi_resources: true
227 redis_cluster_role: 'master'
228 openstack_telemetry_node02:
229 params:
230 redis_cluster_role: 'slave'
231 openstack_telemetry_node03:
232 params:
233 redis_cluster_role: 'slave'