blob: 412a79c94e6b2d8332a74284404132974b49b0a3 [file] [log] [blame]
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.linux.system.repo.mcp.apt_mirantis.ubuntu
6- system.linux.system.repo.mcp.apt_mirantis.openstack
7- 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
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020010- system.reclass.storage.salt
11- system.reclass.storage.system.ceph_mon_cluster
12- system.reclass.storage.system.ceph_rgw_cluster
13- system.salt.minion.ca.salt_master
14- system.salt.minion.cert.proxy
15- system.sphinx.server.doc.reclass
16- system.keystone.client.single
17- system.keystone.client.service.aodh
18- system.keystone.client.service.ceilometer
19- system.keystone.client.service.nova21
20- system.keystone.client.service.nova-placement
21- system.keystone.client.service.glare
22- system.keystone.client.service.cinder3
23- system.keystone.client.service.radosgw-swift
24- system.mysql.client.single
25- system.reclass.storage.system.openstack_control_cluster
26- system.reclass.storage.system.openstack_compute_multi
27- system.reclass.storage.system.openstack_gateway_single
28- system.reclass.storage.system.openstack_dashboard_single
29- system.reclass.storage.system.stacklightv2_server_cluster
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020030- cluster.virtual-mcp-pike-dvr-ceph-rgw.openstack.proxy
31- cluster.virtual-mcp-pike-dvr-ceph-rgw.stacklight.proxy
32- cluster.virtual-mcp-pike-dvr-ceph-rgw
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020033parameters:
34 _param:
35 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
36 reclass_data_revision: master
37 salt_master_environment_repository: "https://github.com/tcpcloud"
38 salt_master_environment_revision: master
39 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
40 reclass_config_master: 192.168.10.90
41 single_address: 172.16.10.100
42 salt_master_host: 127.0.0.1
43 salt_master_base_environment: prd
44 salt_minion_ca_host: ${linux:network:fqdn}
45 linux:
46 network:
47 interface:
48 ens4:
49 enabled: true
50 type: eth
51 proto: static
52 address: ${_param:single_address}
53 netmask: 255.255.255.0
54 nginx:
55 server:
56 site:
57 nginx_proxy_openstack_web:
58 proxy:
59 host: ${_param:openstack_proxy_address}
60 nginx_proxy_openstack_api_heat_cfn:
61 enabled: false
62 salt:
63 master:
64 reactor:
65 reclass/minion/classify:
66 - salt://reclass/reactor/node_register.sls
67 reclass:
68 storage:
69 class_mapping:
70 common_node:
71 expression: all
72 node_param:
73 single_address:
74 value_template: <<node_control_ip>>
75 linux_system_codename:
76 value_template: <<node_os>>
77 salt_master_host:
78 value_template: <<node_master_ip>>
79 infra_config:
80 expression: <<node_hostname>>__startswith__cfg
81 cluster_param:
82 infra_config_address:
83 value_template: <<node_control_ip>>
84 infra_config_deploy_address:
85 value_template: <<node_deploy_ip>>
86 cluster_domain:
87 value_template: <<node_domain>>
88 openstack_control01:
89 expression: <<node_hostname>>__equals__ctl01
90 cluster_param:
91 openstack_control_node01_address:
92 value_template: <<node_control_ip>>
93 openstack_control02:
94 expression: <<node_hostname>>__equals__ctl02
95 cluster_param:
96 openstack_control_node02_address:
97 value_template: <<node_control_ip>>
98 openstack_control03:
99 expression: <<node_hostname>>__equals__ctl03
100 cluster_param:
101 openstack_control_node03_address:
102 value_template: <<node_control_ip>>
103 openstack_compute:
104 expression: <<node_hostname>>__startswith__cmp
105 node_class:
106 value_template:
107 - cluster.<<node_cluster>>.openstack.compute
108 node_param:
109 tenant_address:
110 value_template: <<node_tenant_ip>>
111 external_address:
112 value_template: <<node_external_ip>>
113 openstack_gateway:
114 expression: <<node_hostname>>__startswith__gtw
115 node_class:
116 value_template:
117 - cluster.<<node_cluster>>.openstack.gateway
118 node_param:
119 tenant_address:
120 value_template: <<node_tenant_ip>>
121 external_address:
122 value_template: <<node_external_ip>>
123 cluster_param:
124 openstack_gateway_node01_address:
125 value_template: <<node_control_ip>>
126 stacklight_monitor_node01:
127 expression: <<node_hostname>>__equals__mon01
128 cluster_param:
129 stacklight_monitor_node01_address:
130 value_template: <<node_control_ip>>
131 stacklight_monitor_node02:
132 expression: <<node_hostname>>__equals__mon02
133 cluster_param:
134 stacklight_monitor_node02_address:
135 value_template: <<node_control_ip>>
136 stacklight_monitor_node03:
137 expression: <<node_hostname>>__equals__mon03
138 cluster_param:
139 stacklight_monitor_node03_address:
140 value_template: <<node_control_ip>>
141 ceph_osd_node01:
142 expression: <<node_hostname>>__equals__osd01
143 cluster_param:
144 ceph_osd_node01_address:
145 value_template: <<node_control_ip>>
146 ceph_osd_node02:
147 expression: <<node_hostname>>__equals__osd02
148 cluster_param:
149 ceph_osd_node02_address:
150 value_template: <<node_control_ip>>
151 ceph_mon_node01:
152 expression: <<node_hostname>>__equals__cmn01
153 cluster_param:
154 ceph_mon_node01_address:
155 value_template: <<node_control_ip>>
156 ceph_mon_node02:
157 expression: <<node_hostname>>__equals__cmn02
158 cluster_param:
159 ceph_mon_node02_address:
160 value_template: <<node_control_ip>>
161 ceph_mon_node03:
162 expression: <<node_hostname>>__equals__cmn03
163 cluster_param:
164 ceph_mon_node03_address:
165 value_template: <<node_control_ip>>
166 ceph_rgw_node01:
167 expression: <<node_hostname>>__equals__rgw01
168 cluster_param:
169 ceph_rgw_node01_address:
170 value_template: <<node_control_ip>>
171 ceph_rgw_node02:
172 expression: <<node_hostname>>__equals__rgw02
173 cluster_param:
174 ceph_rgw_node02_address:
175 value_template: <<node_control_ip>>
176 ceph_rgw_node03:
177 expression: <<node_hostname>>__equals__cmn03
178 cluster_param:
179 ceph_rgw_node03_address:
180 value_template: <<node_control_ip>>
181 openstack_dashboard:
182 expression: <<node_hostname>>__startswith__prx
183 node_class:
184 value_template:
185 - cluster.<<node_cluster>>.openstack.dashboard
186 - cluster.<<node_cluster>>.openstack.proxy
187 cluster_param:
188 openstack_proxy_node01_address:
189 value_template: <<node_control_ip>>
190 node:
191 openstack_control_node01:
192 classes:
193 - service.galera.master.cluster
194 params:
195 mysql_cluster_role: master
196 linux_system_codename: xenial
197 openstack_control_node02:
198 classes:
199 - service.galera.slave.cluster
200 params:
201 mysql_cluster_role: slave
202 linux_system_codename: xenial
203 openstack_control_node03:
204 classes:
205 - service.galera.slave.cluster
206 params:
207 mysql_cluster_role: slave
208 linux_system_codename: xenial
209 stacklight_server_node01:
210 classes:
211 - system.influxdb.server.single
212 - system.influxdb.database.stacklight
213 openstack_compute_node01:
214 params:
215 single_address: 172.16.10.105
216 tenant_address: 10.1.0.105
217 external_address: 10.16.0.105
218 openstack_compute_node02:
219 params:
220 single_address: 172.16.10.106
221 tenant_address: 10.1.0.106
222 external_address: 10.16.0.106
223 openstack_gateway_node01:
224 params:
225 tenant_address: 10.1.0.110
226 external_address: 10.16.0.110
227 openstack_proxy_node01:
228 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200229 - cluster.virtual-mcp-pike-dvr-ceph-rgw.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200230 params:
231 linux_system_codename: xenial
232 infra_storage_rack01:
233 name: osd0<<count>>
234 domain: ${_param:cluster_domain}
235 classes:
236 - cluster.${_param:cluster_name}.ceph.osd
237 repeat:
238 count: 2
239 start: 1
240 digits: 1
241 params:
242 ceph_crush_parent:
243 value: rack<<count>>
244 start: 1
245 single_address:
246 value: ceph_osd_node<<count>>_address
247 start: 1
248 digits: 2
249 interpolate: true
250 params:
251 salt_master_host: ${_param:reclass_config_master}
252 linux_system_codename: xenial