blob: ffedd465c2a243ab14cd59253be4dad9fd03a749 [file] [log] [blame]
ibumarskov95a8e2c2018-04-25 15:24:36 +04001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.linux.system.repo.mcp.apt_mirantis.openstack
6- system.openssh.client.lab
7- system.salt.master.pkg
8- system.salt.master.api
9- system.reclass.storage.salt
10- system.salt.minion.ca.salt_master
11- system.salt.minion.cert.proxy
12- system.sphinx.server.doc.reclass
13- system.keystone.client.single
14- system.keystone.client.service.aodh
15- system.keystone.client.service.ceilometer
16- system.keystone.client.service.nova21
17- system.keystone.client.service.glare
18- system.keystone.client.service.cinder3
19- system.keystone.client.service.designate
20- system.mysql.client.single
21- system.reclass.storage.system.openstack_control_cluster
22- system.reclass.storage.system.stacklightv2_server_cluster
23- system.reclass.storage.system.openstack_compute_multi
24- system.reclass.storage.system.openstack_dashboard_single
25- system.reclass.storage.system.openstack_proxy_single
26- system.reclass.storage.system.openstack_gateway_single
27- cluster.virtual-mcp-mitaka-dvr-trusty
28parameters:
29 _param:
30 linux_system_codename: xenial
31 openstack_linux_system_codename: trusty
32 reclass_data_repository: https://gerrit.mcp.mirantis.net/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 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
37 reclass_config_master: ${_param:infra_config_deploy_address}
38 single_address: ${_param:infra_config_address}
39 salt_master_host: 127.0.0.1
40 salt_master_base_environment: prd
41 salt_minion_ca_host: ${linux:network:fqdn}
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
ibumarskovd91a1c52018-05-29 14:18:39 +040051 ens6:
52 enabled: true
53 type: eth
54 proto: static
55 address: 10.16.0.111
56 netmask: 255.255.255.0
ibumarskov95a8e2c2018-04-25 15:24:36 +040057 nginx:
58 server:
59 site:
60 nginx_proxy_openstack_web:
61 proxy:
62 host: ${_param:openstack_proxy_address}
63 nginx_proxy_openstack_api_heat_cfn:
64 enabled: false
65 salt:
66 master:
67 reactor:
68 reclass/minion/classify:
69 - salt://reclass/reactor/node_register.sls
70 reclass:
71 storage:
72 class_mapping:
73 common_node:
74 expression: all
75 node_param:
76 single_address:
77 value_template: <<node_control_ip>>
78 linux_system_codename:
79 value_template: <<node_os>>
80 salt_master_host:
81 value_template: <<node_master_ip>>
82 infra_config:
83 expression: <<node_hostname>>__startswith__cfg
84 cluster_param:
85 infra_config_address:
86 value_template: <<node_control_ip>>
87 infra_config_deploy_address:
88 value_template: <<node_deploy_ip>>
89 cluster_domain:
90 value_template: <<node_domain>>
91 openstack_control01:
92 expression: <<node_hostname>>__equals__ctl01
93 cluster_param:
94 openstack_control_node01_address:
95 value_template: <<node_control_ip>>
96 openstack_control02:
97 expression: <<node_hostname>>__equals__ctl02
98 cluster_param:
99 openstack_control_node02_address:
100 value_template: <<node_control_ip>>
101 openstack_control03:
102 expression: <<node_hostname>>__equals__ctl03
103 cluster_param:
104 openstack_control_node03_address:
105 value_template: <<node_control_ip>>
106 openstack_compute:
107 expression: <<node_hostname>>__startswith__cmp
108 node_class:
109 value_template:
110 - cluster.<<node_cluster>>.openstack.compute
111 node_param:
112 tenant_address:
113 value_template: <<node_tenant_ip>>
114 external_address:
115 value_template: <<node_external_ip>>
116 openstack_gateway:
117 expression: <<node_hostname>>__startswith__gtw
118 node_class:
119 value_template:
120 - cluster.<<node_cluster>>.openstack.gateway
121 node_param:
122 tenant_address:
123 value_template: <<node_tenant_ip>>
124 external_address:
125 value_template: <<node_external_ip>>
126 cluster_param:
127 openstack_gateway_node01_address:
128 value_template: <<node_control_ip>>
129 stacklight_monitor_node01:
130 expression: <<node_hostname>>__equals__mon01
131 cluster_param:
132 stacklight_monitor_node01_address:
133 value_template: <<node_control_ip>>
134 stacklight_monitor_node02:
135 expression: <<node_hostname>>__equals__mon02
136 cluster_param:
137 stacklight_monitor_node02_address:
138 value_template: <<node_control_ip>>
139 stacklight_monitor_node03:
140 expression: <<node_hostname>>__equals__mon03
141 cluster_param:
142 stacklight_monitor_node03_address:
143 value_template: <<node_control_ip>>
144 openstack_dashboard:
145 expression: <<node_hostname>>__startswith__prx
146 node_class:
147 value_template:
148 - cluster.<<node_cluster>>.openstack.dashboard
149 cluster_param:
150 openstack_proxy_node01_address:
151 value_template: <<node_control_ip>>
152 node:
153 openstack_control_node01:
154 classes:
155 - service.galera.master.cluster
156 params:
157 mysql_cluster_role: master
158 linux_system_codename: ${_param:openstack_linux_system_codename}
159 openstack_control_node02:
160 classes:
161 - service.galera.slave.cluster
162 params:
163 mysql_cluster_role: slave
164 linux_system_codename: ${_param:openstack_linux_system_codename}
165 openstack_control_node03:
166 classes:
167 - service.galera.slave.cluster
168 params:
169 mysql_cluster_role: slave
170 linux_system_codename: ${_param:openstack_linux_system_codename}
171 openstack_compute_node01:
172 params:
173 tenant_address: 10.1.0.105
174 external_address: 10.16.0.105
175 linux_system_codename: ${_param:openstack_linux_system_codename}
176 openstack_compute_node02:
177 params:
178 tenant_address: 10.1.0.106
179 external_address: 10.16.0.106
180 linux_system_codename: ${_param:openstack_linux_system_codename}
181 openstack_gateway_node01:
182 params:
183 tenant_address: 10.1.0.110
184 external_address: 10.16.0.110
185 linux_system_codename: ${_param:openstack_linux_system_codename}
186 openstack_proxy_node01:
187 params:
188 linux_system_codename: ${_param:openstack_linux_system_codename}
189 stacklight_server_node01:
190 classes:
191 - system.influxdb.server.single
192 - system.influxdb.database.stacklight
193 params:
194 linux_system_codename: ${_param:openstack_linux_system_codename}
195 stacklight_server_node02:
196 params:
197 linux_system_codename: ${_param:openstack_linux_system_codename}
198 stacklight_server_node03:
199 params:
200 linux_system_codename: ${_param:openstack_linux_system_codename}