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