blob: 37c55948d5cbbd4e6c244720a8d81cf1f07d5734 [file] [log] [blame]
ibumarskovf240d1f2018-02-01 16:38:05 +04001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
ibumarskov95a8e2c2018-04-25 15:24:36 +04005- system.linux.system.repo.mcp.apt_mirantis.openstack
ibumarskovf240d1f2018-02-01 16:38:05 +04006- system.openssh.client.lab
ibumarskovf240d1f2018-02-01 16:38:05 +04007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
ibumarskovf240d1f2018-02-01 16:38:05 +04009- system.reclass.storage.salt
10- system.salt.minion.ca.salt_master
11- system.salt.minion.cert.proxy
12- system.sphinx.server.doc.reclass
dtsapikove73796f2018-02-21 16:45:24 +040013- system.keystone.client.core
ibumarskovf240d1f2018-02-01 16:38:05 +040014- system.keystone.client.service.ceilometer
ibumarskovebe19252018-02-26 12:59:31 +040015- system.keystone.client.service.designate
dtsapikove73796f2018-02-21 16:45:24 +040016- 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
ibumarskovf240d1f2018-02-01 16:38:05 +040028- system.mysql.client.single
29- system.reclass.storage.system.openstack_control_cluster
dtsapikove73796f2018-02-21 16:45:24 +040030- system.reclass.storage.system.stacklightv2_server_cluster
ibumarskovf240d1f2018-02-01 16:38:05 +040031- system.reclass.storage.system.openstack_compute_multi
32- system.reclass.storage.system.openstack_dashboard_single
ibumarskov2bde4042018-02-15 15:54:42 +040033- system.reclass.storage.system.openstack_proxy_single
ibumarskovf240d1f2018-02-01 16:38:05 +040034- system.reclass.storage.system.openstack_gateway_single
ibumarskovf240d1f2018-02-01 16:38:05 +040035- cluster.virtual-mcp-mitaka-ovs
36parameters:
37 _param:
ibumarskov95a8e2c2018-04-25 15:24:36 +040038 linux_system_codename: xenial
39 openstack_linux_system_codename: xenial
ibumarskovf240d1f2018-02-01 16:38:05 +040040 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
41 reclass_data_revision: master
ibumarskovf240d1f2018-02-01 16:38:05 +040042 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
57 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
ibumarskovf240d1f2018-02-01 16:38:05 +0400149 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
ibumarskov95a8e2c2018-04-25 15:24:36 +0400158 linux_system_codename: ${_param:openstack_linux_system_codename}
ibumarskovf240d1f2018-02-01 16:38:05 +0400159 openstack_control_node02:
160 classes:
161 - service.galera.slave.cluster
162 params:
163 mysql_cluster_role: slave
ibumarskov95a8e2c2018-04-25 15:24:36 +0400164 linux_system_codename: ${_param:openstack_linux_system_codename}
ibumarskovf240d1f2018-02-01 16:38:05 +0400165 openstack_control_node03:
166 classes:
167 - service.galera.slave.cluster
168 params:
169 mysql_cluster_role: slave
ibumarskov95a8e2c2018-04-25 15:24:36 +0400170 linux_system_codename: ${_param:openstack_linux_system_codename}
ibumarskovf240d1f2018-02-01 16:38:05 +0400171 openstack_compute_node01:
172 params:
173 tenant_address: 10.1.0.105
174 external_address: 10.16.0.105
ibumarskov95a8e2c2018-04-25 15:24:36 +0400175 linux_system_codename: ${_param:openstack_linux_system_codename}
ibumarskovf240d1f2018-02-01 16:38:05 +0400176 openstack_compute_node02:
177 params:
178 tenant_address: 10.1.0.106
179 external_address: 10.16.0.106
ibumarskov95a8e2c2018-04-25 15:24:36 +0400180 linux_system_codename: ${_param:openstack_linux_system_codename}
ibumarskovf240d1f2018-02-01 16:38:05 +0400181 openstack_gateway_node01:
182 params:
183 tenant_address: 10.1.0.110
184 external_address: 10.16.0.110
ibumarskov95a8e2c2018-04-25 15:24:36 +0400185 linux_system_codename: ${_param:openstack_linux_system_codename}
ibumarskovf240d1f2018-02-01 16:38:05 +0400186 openstack_proxy_node01:
187 classes:
188 - cluster.virtual-mcp-mitaka-ovs.openstack.proxy
189 params:
ibumarskov95a8e2c2018-04-25 15:24:36 +0400190 linux_system_codename: ${_param:openstack_linux_system_codename}
191 stacklight_server_node01:
192 classes:
193 - system.influxdb.server.single
194 - system.influxdb.database.stacklight
195 params:
196 linux_system_codename: ${_param:openstack_linux_system_codename}
197 stacklight_server_node02:
198 params:
199 linux_system_codename: ${_param:openstack_linux_system_codename}
200 stacklight_server_node03:
201 params:
202 linux_system_codename: ${_param:openstack_linux_system_codename}