blob: b3b3c76de6210938878b88030660b4dadff1d462 [file] [log] [blame]
Dennis Dmitriev41982952017-12-22 20:28:27 +02001classes:
2- service.git.client
3- system.linux.system.single
Tatyana Leontovichc07941e2018-03-20 16:04:15 +02004- system.linux.system.single.debian
Dennis Dmitriev41982952017-12-22 20:28:27 +02005- system.linux.system.repo_local.mcp.salt
6- system.linux.system.repo_local.mcp.apt_mirantis.openstack
7- system.openssh.client.lab
Dennis Dmitriev41982952017-12-22 20:28:27 +02008- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02009- system.salt.master.api
Dennis Dmitriev41982952017-12-22 20:28:27 +020010- system.reclass.storage.salt
11- system.reclass.storage.system.ceph_mon_cluster
12- system.salt.minion.ca.salt_master
13- system.salt.minion.cert.proxy
14- system.sphinx.server.doc.reclass
15- system.keystone.client.single
16- system.keystone.client.service.aodh
17- system.keystone.client.service.ceilometer
18- system.keystone.client.service.nova21
19- system.keystone.client.service.nova-placement
20- system.keystone.client.service.glare
21- system.keystone.client.service.cinder3
22- system.mysql.client.single
23- system.reclass.storage.system.openstack_control_cluster
24- system.reclass.storage.system.openstack_compute_multi
25- system.reclass.storage.system.openstack_gateway_single
26- system.reclass.storage.system.openstack_dashboard_single
27- system.reclass.storage.system.stacklightv2_server_cluster
28- cluster.virtual-mcp-ocata-ovs-ceph-local.openstack.proxy
29- cluster.virtual-mcp-ocata-ovs-ceph-local.stacklight.proxy
30- cluster.virtual-mcp-ocata-ovs-ceph-local
31parameters:
32 _param:
33 reclass_data_repository: https://gerrit.mcp.mirantis.local.test/salt-models/mcp-virtual-lab
34 reclass_data_revision: master
35 salt_master_environment_repository: "https://github.com/tcpcloud"
36 salt_master_environment_revision: master
37 reclass_config_master: 192.168.10.90
38 single_address: 172.16.10.100
39 salt_master_host: 127.0.0.1
40 salt_master_base_environment: prd
41 salt_minion_ca_host: ${linux:network:fqdn}
42 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
43 linux:
44 network:
45 interface:
46 ens4:
47 enabled: true
48 type: eth
49 proto: static
50 address: ${_param:single_address}
51 netmask: 255.255.255.0
52 nginx:
53 server:
54 site:
55 nginx_proxy_openstack_web:
56 proxy:
57 host: prx
58 nginx_proxy_openstack_api_heat_cfn:
59 enabled: false
60 salt:
61 master:
62 reactor:
63 reclass/minion/classify:
64 - salt://reclass/reactor/node_register.sls
65 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:
122 openstack_gateway_node01_address:
123 value_template: <<node_control_ip>>
124 stacklight_monitor_node01:
125 expression: <<node_hostname>>__equals__mon01
126 cluster_param:
127 stacklight_monitor_node01_address:
128 value_template: <<node_control_ip>>
129 stacklight_monitor_node02:
130 expression: <<node_hostname>>__equals__mon02
131 cluster_param:
132 stacklight_monitor_node02_address:
133 value_template: <<node_control_ip>>
134 stacklight_monitor_node03:
135 expression: <<node_hostname>>__equals__mon03
136 cluster_param:
137 stacklight_monitor_node03_address:
138 value_template: <<node_control_ip>>
139 ceph_osd_node01:
140 expression: <<node_hostname>>__equals__osd01
141 cluster_param:
142 ceph_osd_node01_address:
143 value_template: <<node_control_ip>>
144 ceph_osd_node02:
145 expression: <<node_hostname>>__equals__osd02
146 cluster_param:
147 ceph_osd_node02_address:
148 value_template: <<node_control_ip>>
149 ceph_mon_node01:
150 expression: <<node_hostname>>__equals__cmn01
151 cluster_param:
152 ceph_mon_node01_address:
153 value_template: <<node_control_ip>>
154 ceph_mon_node02:
155 expression: <<node_hostname>>__equals__cmn02
156 cluster_param:
157 ceph_mon_node02_address:
158 value_template: <<node_control_ip>>
159 ceph_mon_node03:
160 expression: <<node_hostname>>__equals__cmn03
161 cluster_param:
162 ceph_mon_node03_address:
163 value_template: <<node_control_ip>>
164 openstack_dashboard:
165 expression: <<node_hostname>>__startswith__prx
166 node_class:
167 value_template:
168 - cluster.<<node_cluster>>.openstack.dashboard
169 - cluster.<<node_cluster>>.openstack.proxy
170 cluster_param:
171 openstack_proxy_node01_address:
172 value_template: <<node_control_ip>>
173 node:
174 openstack_control_node01:
175 classes:
176 - service.galera.master.cluster
177 params:
178 mysql_cluster_role: master
179 linux_system_codename: xenial
180 openstack_control_node02:
181 classes:
182 - service.galera.slave.cluster
183 params:
184 mysql_cluster_role: slave
185 linux_system_codename: xenial
186 openstack_control_node03:
187 classes:
188 - service.galera.slave.cluster
189 params:
190 mysql_cluster_role: slave
191 linux_system_codename: xenial
192 stacklight_server_node01:
193 classes:
194 - system.influxdb.server.single
195 - system.influxdb.database.stacklight
196 openstack_compute_node01:
197 params:
198 single_address: 172.16.10.105
199 tenant_address: 10.1.0.105
200 external_address: 10.16.0.105
201 openstack_compute_node02:
202 params:
203 single_address: 172.16.10.106
204 tenant_address: 10.1.0.106
205 external_address: 10.16.0.106
206 openstack_gateway_node01:
207 params:
208 tenant_address: 10.1.0.110
209 external_address: 10.16.0.110
210 openstack_proxy_node01:
211 classes:
212 - cluster.virtual-mcp-ocata-ovs-ceph-local.openstack.proxy
213 params:
214 linux_system_codename: xenial
215 infra_storage_rack01:
216 name: osd0<<count>>
217 domain: ${_param:cluster_domain}
218 classes:
219 - cluster.${_param:cluster_name}.ceph.osd
220 repeat:
221 count: 2
222 start: 1
223 digits: 1
224 params:
225 ceph_crush_parent:
226 value: rack<<count>>
227 start: 1
228 single_address:
229 value: ceph_osd_node<<count>>_address
230 start: 1
231 digits: 2
232 interpolate: true
233 params:
234 salt_master_host: ${_param:reclass_config_master}
235 linux_system_codename: xenial