blob: c400ce871792e599c8446934fa71518719fbdc02 [file] [log] [blame]
vitalygusev4e9e0732018-03-19 15:38:12 +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.api
8- system.salt.master.pkg
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.nova-placement
18- system.keystone.client.service.glare
19- system.keystone.client.service.cinder3
20- system.keystone.client.service.designate
21- system.mysql.client.single
22- system.reclass.storage.system.openstack_dns_cluster
23- system.reclass.storage.system.openstack_control_cluster
24- system.reclass.storage.system.openstack_compute_multi
25- system.reclass.storage.system.openstack_gateway_single
26- system.reclass.storage.system.openstack_dashboard_single
27- system.reclass.storage.system.stacklightv2_server_cluster
28- cluster.sl-pike-dvr.infra.backup.client_common
29- cluster.sl-pike-dvr.openstack.proxy
30- cluster.sl-pike-dvr.stacklight.proxy
31- cluster.sl-pike-dvr
32parameters:
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
38 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
39 reclass_config_master: 192.168.10.90
40 single_address: 172.16.10.100
41 salt_master_host: 127.0.0.1
42 salt_master_base_environment: prd
43 salt_minion_ca_host: ${linux:network:fqdn}
44 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:
58 host: ${_param:openstack_proxy_address}
59 nginx_proxy_openstack_api_heat_cfn:
60 enabled: false
61 salt:
62 master:
63 backup: true
64 reactor:
65 reclass/minion/classify:
66 - salt://reclass/reactor/node_register.sls
67 minion:
68 backup: true
69 reclass:
70 storage:
71 class_mapping:
72 common_node:
73 expression: all
74 node_param:
75 single_address:
76 value_template: <<node_control_ip>>
77 linux_system_codename:
78 value_template: <<node_os>>
79 salt_master_host:
80 value_template: <<node_master_ip>>
81 infra_config:
82 expression: <<node_hostname>>__startswith__cfg
83 cluster_param:
84 infra_config_address:
85 value_template: <<node_control_ip>>
86 infra_config_deploy_address:
87 value_template: <<node_deploy_ip>>
88 cluster_domain:
89 value_template: <<node_domain>>
90 openstack_control01:
91 expression: <<node_hostname>>__equals__ctl01
92 cluster_param:
93 openstack_control_node01_address:
94 value_template: <<node_control_ip>>
95 openstack_control02:
96 expression: <<node_hostname>>__equals__ctl02
97 cluster_param:
98 openstack_control_node02_address:
99 value_template: <<node_control_ip>>
100 openstack_control03:
101 expression: <<node_hostname>>__equals__ctl03
102 cluster_param:
103 openstack_control_node03_address:
104 value_template: <<node_control_ip>>
105 openstack_compute:
106 expression: <<node_hostname>>__startswith__cmp
107 node_class:
108 value_template:
109 - cluster.<<node_cluster>>.openstack.compute
110 node_param:
111 tenant_address:
112 value_template: <<node_tenant_ip>>
113 external_address:
114 value_template: <<node_external_ip>>
115 openstack_gateway:
116 expression: <<node_hostname>>__startswith__gtw
117 node_class:
118 value_template:
119 - cluster.<<node_cluster>>.openstack.gateway
120 node_param:
121 tenant_address:
122 value_template: <<node_tenant_ip>>
123 external_address:
124 value_template: <<node_external_ip>>
125 cluster_param:
126 openstack_gateway_node01_address:
127 value_template: <<node_control_ip>>
128 stacklight_monitor_node01:
129 expression: <<node_hostname>>__equals__mon01
130 cluster_param:
131 stacklight_monitor_node01_address:
132 value_template: <<node_control_ip>>
133 stacklight_monitor_node02:
134 expression: <<node_hostname>>__equals__mon02
135 cluster_param:
136 stacklight_monitor_node02_address:
137 value_template: <<node_control_ip>>
138 stacklight_monitor_node03:
139 expression: <<node_hostname>>__equals__mon03
140 cluster_param:
141 stacklight_monitor_node03_address:
142 value_template: <<node_control_ip>>
143 openstack_dashboard:
144 expression: <<node_hostname>>__startswith__prx
145 node_class:
146 value_template:
147 - cluster.<<node_cluster>>.openstack.dashboard
148 - cluster.<<node_cluster>>.openstack.proxy
149 cluster_param:
150 openstack_proxy_node01_address:
151 value_template: <<node_control_ip>>
152 node:
153 openstack_control_node01:
154 classes:
155 - cluster.virtual-mcp-pike-dvr.infra.backup.client_mysql
156 - service.galera.master.cluster
157 params:
158 mysql_cluster_role: master
159 linux_system_codename: xenial
160 openstack_control_node02:
161 classes:
162 - service.galera.slave.cluster
163 params:
164 mysql_cluster_role: slave
165 linux_system_codename: xenial
166 openstack_control_node03:
167 classes:
168 - cluster.virtual-mcp-pike-dvr.infra.backup.server
169 - service.galera.slave.cluster
170 params:
171 mysql_cluster_role: slave
172 linux_system_codename: xenial
173 stacklight_server_node01:
174 classes:
175 - system.influxdb.server.single
176 - system.influxdb.database.stacklight
177 openstack_compute_node01:
178 params:
179 single_address: 172.16.10.105
180 tenant_address: 10.1.0.105
181 external_address: 10.16.0.105
182 openstack_compute_node02:
183 params:
184 single_address: 172.16.10.106
185 tenant_address: 10.1.0.106
186 external_address: 10.16.0.106
187 openstack_gateway_node01:
188 params:
189 tenant_address: 10.1.0.110
190 external_address: 10.16.0.110
191 openstack_proxy_node01:
192 classes:
193 - cluster.virtual-mcp-pike-dvr.openstack.proxy
194 params:
195 linux_system_codename: xenial