blob: 6e5d4231920cd472cccc386ac9e76fc2dffd6e02 [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
Michal Kobusaab8a402018-03-21 18:55:36 +010040 reclass_config_master_gateway: 192.168.10.1
vitalygusev4e9e0732018-03-19 15:38:12 +040041 single_address: 172.16.10.100
42 salt_master_host: 127.0.0.1
43 salt_master_base_environment: prd
44 salt_minion_ca_host: ${linux:network:fqdn}
45 linux:
46 network:
47 interface:
Michal Kobusaab8a402018-03-21 18:55:36 +010048 ens3:
49 enabled: true
50 type: eth
51 proto: static
52 address: ${_param:reclass_config_master}
53 gateway: ${_param:reclass_config_master_gateway}
54 netmask: 255.255.255.0
vitalygusev4e9e0732018-03-19 15:38:12 +040055 ens4:
56 enabled: true
57 type: eth
58 proto: static
59 address: ${_param:single_address}
60 netmask: 255.255.255.0
61 nginx:
62 server:
63 site:
64 nginx_proxy_openstack_web:
65 proxy:
66 host: ${_param:openstack_proxy_address}
67 nginx_proxy_openstack_api_heat_cfn:
68 enabled: false
69 salt:
70 master:
71 backup: true
72 reactor:
73 reclass/minion/classify:
74 - salt://reclass/reactor/node_register.sls
75 minion:
76 backup: true
77 reclass:
78 storage:
79 class_mapping:
80 common_node:
81 expression: all
82 node_param:
83 single_address:
84 value_template: <<node_control_ip>>
85 linux_system_codename:
86 value_template: <<node_os>>
87 salt_master_host:
88 value_template: <<node_master_ip>>
89 infra_config:
90 expression: <<node_hostname>>__startswith__cfg
91 cluster_param:
92 infra_config_address:
93 value_template: <<node_control_ip>>
94 infra_config_deploy_address:
95 value_template: <<node_deploy_ip>>
96 cluster_domain:
97 value_template: <<node_domain>>
98 openstack_control01:
99 expression: <<node_hostname>>__equals__ctl01
100 cluster_param:
101 openstack_control_node01_address:
102 value_template: <<node_control_ip>>
103 openstack_control02:
104 expression: <<node_hostname>>__equals__ctl02
105 cluster_param:
106 openstack_control_node02_address:
107 value_template: <<node_control_ip>>
108 openstack_control03:
109 expression: <<node_hostname>>__equals__ctl03
110 cluster_param:
111 openstack_control_node03_address:
112 value_template: <<node_control_ip>>
113 openstack_compute:
114 expression: <<node_hostname>>__startswith__cmp
115 node_class:
116 value_template:
117 - cluster.<<node_cluster>>.openstack.compute
118 node_param:
119 tenant_address:
120 value_template: <<node_tenant_ip>>
121 external_address:
122 value_template: <<node_external_ip>>
123 openstack_gateway:
124 expression: <<node_hostname>>__startswith__gtw
125 node_class:
126 value_template:
127 - cluster.<<node_cluster>>.openstack.gateway
128 node_param:
129 tenant_address:
130 value_template: <<node_tenant_ip>>
131 external_address:
132 value_template: <<node_external_ip>>
133 cluster_param:
134 openstack_gateway_node01_address:
135 value_template: <<node_control_ip>>
136 stacklight_monitor_node01:
137 expression: <<node_hostname>>__equals__mon01
138 cluster_param:
139 stacklight_monitor_node01_address:
140 value_template: <<node_control_ip>>
141 stacklight_monitor_node02:
142 expression: <<node_hostname>>__equals__mon02
143 cluster_param:
144 stacklight_monitor_node02_address:
145 value_template: <<node_control_ip>>
146 stacklight_monitor_node03:
147 expression: <<node_hostname>>__equals__mon03
148 cluster_param:
149 stacklight_monitor_node03_address:
150 value_template: <<node_control_ip>>
151 openstack_dashboard:
152 expression: <<node_hostname>>__startswith__prx
153 node_class:
154 value_template:
155 - cluster.<<node_cluster>>.openstack.dashboard
156 - cluster.<<node_cluster>>.openstack.proxy
157 cluster_param:
158 openstack_proxy_node01_address:
159 value_template: <<node_control_ip>>
160 node:
161 openstack_control_node01:
162 classes:
163 - cluster.virtual-mcp-pike-dvr.infra.backup.client_mysql
164 - service.galera.master.cluster
165 params:
166 mysql_cluster_role: master
167 linux_system_codename: xenial
168 openstack_control_node02:
169 classes:
170 - service.galera.slave.cluster
171 params:
172 mysql_cluster_role: slave
173 linux_system_codename: xenial
174 openstack_control_node03:
175 classes:
176 - cluster.virtual-mcp-pike-dvr.infra.backup.server
177 - service.galera.slave.cluster
178 params:
179 mysql_cluster_role: slave
180 linux_system_codename: xenial
181 stacklight_server_node01:
182 classes:
183 - system.influxdb.server.single
184 - system.influxdb.database.stacklight
185 openstack_compute_node01:
186 params:
187 single_address: 172.16.10.105
188 tenant_address: 10.1.0.105
189 external_address: 10.16.0.105
190 openstack_compute_node02:
191 params:
192 single_address: 172.16.10.106
193 tenant_address: 10.1.0.106
194 external_address: 10.16.0.106
195 openstack_gateway_node01:
196 params:
197 tenant_address: 10.1.0.110
198 external_address: 10.16.0.110
199 openstack_proxy_node01:
200 classes:
201 - cluster.virtual-mcp-pike-dvr.openstack.proxy
202 params:
203 linux_system_codename: xenial