blob: 7d0a9866451f9750e21423127056f5ee614d3305 [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
5- system.linux.system.repo.mcp.openstack
6- system.linux.system.repo.ubuntu
7- system.openssh.client.lab
8- system.salt.master.api
9- system.salt.master.pkg
10- system.reclass.storage.salt
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.ceilometer
16- system.keystone.client.service.nova21
17- system.keystone.client.service.glare
18- system.keystone.client.service.cinder3
ibumarskovebe19252018-02-26 12:59:31 +040019- system.keystone.client.service.designate
ibumarskovf240d1f2018-02-01 16:38:05 +040020- system.mysql.client.single
21- system.reclass.storage.system.openstack_control_cluster
22- system.reclass.storage.system.stacklight_server_cluster
23- system.reclass.storage.system.openstack_compute_multi
24- system.reclass.storage.system.openstack_dashboard_single
ibumarskov2bde4042018-02-15 15:54:42 +040025- system.reclass.storage.system.openstack_proxy_single
ibumarskovf240d1f2018-02-01 16:38:05 +040026- system.reclass.storage.system.openstack_gateway_single
27- cluster.virtual-mcp-mitaka-ovs.openstack.proxy
28- cluster.virtual-mcp-mitaka-ovs.stacklight.proxy
29- cluster.virtual-mcp-mitaka-ovs
30parameters:
31 _param:
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 reclass_config_master: ${_param:infra_config_deploy_address}
37 single_address: ${_param:infra_config_address}
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: ${_param:openstack_proxy_address}
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 openstack_dashboard:
139 expression: <<node_hostname>>__startswith__prx
140 node_class:
141 value_template:
142 - cluster.<<node_cluster>>.openstack.dashboard
143 - cluster.<<node_cluster>>.openstack.proxy
144 cluster_param:
145 openstack_proxy_node01_address:
146 value_template: <<node_control_ip>>
147 node:
148 openstack_control_node01:
149 classes:
150 - service.galera.master.cluster
151 params:
152 mysql_cluster_role: master
153 linux_system_codename: xenial
154 openstack_control_node02:
155 classes:
156 - service.galera.slave.cluster
157 params:
158 mysql_cluster_role: slave
159 linux_system_codename: xenial
160 openstack_control_node03:
161 classes:
162 - service.galera.slave.cluster
163 params:
164 mysql_cluster_role: slave
165 linux_system_codename: xenial
166 stacklight_server_node01:
167 classes:
168 - system.influxdb.server.single
169 - system.influxdb.database.stacklight
170 openstack_compute_node01:
171 params:
172 tenant_address: 10.1.0.105
173 external_address: 10.16.0.105
174 openstack_compute_node02:
175 params:
176 tenant_address: 10.1.0.106
177 external_address: 10.16.0.106
178 openstack_gateway_node01:
179 params:
180 tenant_address: 10.1.0.110
181 external_address: 10.16.0.110
182 openstack_proxy_node01:
183 classes:
184 - cluster.virtual-mcp-mitaka-ovs.openstack.proxy
185 params:
186 linux_system_codename: xenial