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