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