blob: 815e20f7f11fc317e603a57d3b8d946e1f55c81e [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
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02005- system.linux.system.repo.mcp.salt
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
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020028- system.reclass.storage.system.openstack_control_cluster
29- system.reclass.storage.system.openstack_compute_multi
30- system.reclass.storage.system.openstack_gateway_single
31- system.reclass.storage.system.openstack_dashboard_single
Vasyl Saienko5f39a522018-03-23 15:56:55 +020032- system.reclass.storage.system.openstack_share_single
Mykyta Karpin8abcce32018-03-15 13:43:28 +020033- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010034- cluster.virtual-mcp-pike-ovs.infra.backup.client_common
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020035- cluster.virtual-mcp-pike-ovs
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020036parameters:
37 _param:
38 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
39 reclass_data_revision: master
40 salt_master_environment_repository: "https://github.com/tcpcloud"
41 salt_master_environment_revision: master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020042 reclass_config_master: 192.168.10.90
43 single_address: 172.16.10.100
44 salt_master_host: 127.0.0.1
45 salt_master_base_environment: prd
46 salt_minion_ca_host: ${linux:network:fqdn}
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020047 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020048 linux:
49 network:
50 interface:
51 ens4:
52 enabled: true
53 type: eth
54 proto: static
55 address: ${_param:single_address}
56 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020057 salt:
58 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010059 backup: true
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020060 reactor:
61 reclass/minion/classify:
62 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010063 minion:
64 backup: true
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020065 reclass:
66 storage:
67 class_mapping:
68 common_node:
69 expression: all
70 node_param:
71 single_address:
72 value_template: <<node_control_ip>>
73 linux_system_codename:
74 value_template: <<node_os>>
75 salt_master_host:
76 value_template: <<node_master_ip>>
77 infra_config:
78 expression: <<node_hostname>>__startswith__cfg
79 cluster_param:
80 infra_config_address:
81 value_template: <<node_control_ip>>
82 infra_config_deploy_address:
83 value_template: <<node_deploy_ip>>
84 cluster_domain:
85 value_template: <<node_domain>>
86 openstack_control01:
87 expression: <<node_hostname>>__equals__ctl01
88 cluster_param:
89 openstack_control_node01_address:
90 value_template: <<node_control_ip>>
91 openstack_control02:
92 expression: <<node_hostname>>__equals__ctl02
93 cluster_param:
94 openstack_control_node02_address:
95 value_template: <<node_control_ip>>
96 openstack_control03:
97 expression: <<node_hostname>>__equals__ctl03
98 cluster_param:
99 openstack_control_node03_address:
100 value_template: <<node_control_ip>>
101 openstack_compute:
102 expression: <<node_hostname>>__startswith__cmp
103 node_class:
104 value_template:
105 - cluster.<<node_cluster>>.openstack.compute
106 node_param:
107 tenant_address:
108 value_template: <<node_tenant_ip>>
109 external_address:
110 value_template: <<node_external_ip>>
111 openstack_gateway:
112 expression: <<node_hostname>>__startswith__gtw
113 node_class:
114 value_template:
115 - cluster.<<node_cluster>>.openstack.gateway
116 node_param:
117 tenant_address:
118 value_template: <<node_tenant_ip>>
119 external_address:
120 value_template: <<node_external_ip>>
121 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300122 openstack_gateway_address:
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200123 value_template: <<node_control_ip>>
Mykyta Karpinc00b2162018-05-29 17:24:25 +0300124 openstack_gateway_node01_external_address:
125 value_template: <<node_external_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200126 openstack_dashboard:
127 expression: <<node_hostname>>__startswith__prx
128 node_class:
129 value_template:
130 - cluster.<<node_cluster>>.openstack.dashboard
131 - cluster.<<node_cluster>>.openstack.proxy
132 cluster_param:
133 openstack_proxy_node01_address:
134 value_template: <<node_control_ip>>
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200135 openstack_share:
136 expression: <<node_hostname>>__startswith__share
137 node_class:
138 value_template:
139 - cluster.<<node_cluster>>.openstack.share
Vasyl Saienko5f39a522018-03-23 15:56:55 +0200140 cluster_param:
141 openstack_share_node01_address:
142 value_template: <<node_control_ip>>
143 openstack_share_node01_share_address:
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200144 value_template: <<node_tenant_ip>>
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200145 openstack_telemetry01:
146 expression: <<node_hostname>>__equals__mdb01
147 cluster_param:
148 openstack_telemetry_node01_address:
149 value_template: <<node_control_ip>>
150 openstack_telemetry02:
151 expression: <<node_hostname>>__equals__mdb02
152 cluster_param:
153 openstack_telemetry_node02_address:
154 value_template: <<node_control_ip>>
155 openstack_telemetry03:
156 expression: <<node_hostname>>__equals__mdb03
157 cluster_param:
158 openstack_telemetry_node03_address:
159 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200160 node:
161 openstack_control_node01:
162 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100163 - cluster.virtual-mcp-pike-ovs.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200164 - service.galera.master.cluster
165 params:
166 mysql_cluster_role: master
167 linux_system_codename: xenial
168 openstack_control_node02:
169 classes:
170 - service.galera.slave.cluster
171 params:
172 mysql_cluster_role: slave
173 linux_system_codename: xenial
174 openstack_control_node03:
175 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100176 - cluster.virtual-mcp-pike-ovs.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200177 - service.galera.slave.cluster
178 params:
179 mysql_cluster_role: slave
180 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200181 openstack_compute_node01:
182 params:
183 single_address: 172.16.10.105
184 tenant_address: 10.1.0.105
185 external_address: 10.16.0.105
186 openstack_compute_node02:
187 params:
188 single_address: 172.16.10.106
189 tenant_address: 10.1.0.106
190 external_address: 10.16.0.106
191 openstack_gateway_node01:
192 params:
193 tenant_address: 10.1.0.110
Mykyta Karpinc00b2162018-05-29 17:24:25 +0300194 external_address: ${_param:openstack_gateway_node01_external_address}
Oleksii Butenko4f729322018-04-16 16:25:32 +0300195 openstack_share_node01:
196 params:
197 single_address: 172.16.10.130
198 tenant_address: 10.1.0.130
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200199 openstack_proxy_node01:
200 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200201 - cluster.virtual-mcp-pike-ovs.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200202 params:
203 linux_system_codename: xenial
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200204 openstack_telemetry_node01:
205 params:
206 # create resources only from 1 controller
207 # to prevent race conditions
208 ceilometer_create_gnocchi_resources: true
209 redis_cluster_role: 'master'
210 openstack_telemetry_node02:
211 params:
212 redis_cluster_role: 'slave'
213 openstack_telemetry_node03:
214 params:
215 redis_cluster_role: 'slave'