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