blob: 8463c9e9d82a2c2362705dc612445bce0b572bf0 [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.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.glare
18- system.keystone.client.service.cinder3
19- system.mysql.client.single
20- system.reclass.storage.system.openstack_control_cluster
21- system.reclass.storage.system.stacklightv2_server_cluster
22- system.reclass.storage.system.openstack_compute_multi
23- system.reclass.storage.system.openstack_dashboard_single
ibumarskov2bde4042018-02-15 15:54:42 +040024- system.reclass.storage.system.openstack_proxy_single
ibumarskovf240d1f2018-02-01 16:38:05 +040025- system.reclass.storage.system.openstack_gateway_single
26- cluster.virtual-mcp-newton-dvr.openstack.proxy
27- cluster.virtual-mcp-newton-dvr.stacklight.proxy
28- cluster.virtual-mcp-newton-dvr
29parameters:
30 _param:
31 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
32 reclass_data_revision: master
33 salt_master_environment_repository: "https://github.com/tcpcloud"
34 salt_master_environment_revision: master
35 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
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 linux:
42 network:
43 interface:
44 ens4:
45 enabled: true
46 type: eth
47 proto: static
48 address: ${_param:single_address}
49 netmask: 255.255.255.0
50 nginx:
51 server:
52 site:
53 nginx_proxy_openstack_web:
54 proxy:
55 host: ${_param:openstack_proxy_address}
56 nginx_proxy_openstack_api_heat_cfn:
57 enabled: false
58 salt:
59 master:
60 reactor:
61 reclass/minion/classify:
62 - salt://reclass/reactor/node_register.sls
63 reclass:
64 storage:
65 class_mapping:
66 common_node:
67 expression: all
68 node_param:
69 single_address:
70 value_template: <<node_control_ip>>
71 linux_system_codename:
72 value_template: <<node_os>>
73 salt_master_host:
74 value_template: <<node_master_ip>>
75 infra_config:
76 expression: <<node_hostname>>__startswith__cfg
77 cluster_param:
78 infra_config_address:
79 value_template: <<node_control_ip>>
80 infra_config_deploy_address:
81 value_template: <<node_deploy_ip>>
82 cluster_domain:
83 value_template: <<node_domain>>
84 openstack_control01:
85 expression: <<node_hostname>>__equals__ctl01
86 cluster_param:
87 openstack_control_node01_address:
88 value_template: <<node_control_ip>>
89 openstack_control02:
90 expression: <<node_hostname>>__equals__ctl02
91 cluster_param:
92 openstack_control_node02_address:
93 value_template: <<node_control_ip>>
94 openstack_control03:
95 expression: <<node_hostname>>__equals__ctl03
96 cluster_param:
97 openstack_control_node03_address:
98 value_template: <<node_control_ip>>
99 openstack_compute:
100 expression: <<node_hostname>>__startswith__cmp
101 node_class:
102 value_template:
103 - cluster.<<node_cluster>>.openstack.compute
104 node_param:
105 tenant_address:
106 value_template: <<node_tenant_ip>>
107 external_address:
108 value_template: <<node_external_ip>>
109 openstack_gateway:
110 expression: <<node_hostname>>__startswith__gtw
111 node_class:
112 value_template:
113 - cluster.<<node_cluster>>.openstack.gateway
114 node_param:
115 tenant_address:
116 value_template: <<node_tenant_ip>>
117 external_address:
118 value_template: <<node_external_ip>>
119 cluster_param:
120 openstack_gateway_node01_address:
121 value_template: <<node_control_ip>>
122 stacklight_monitor_node01:
123 expression: <<node_hostname>>__equals__mon01
124 cluster_param:
125 stacklight_monitor_node01_address:
126 value_template: <<node_control_ip>>
127 stacklight_monitor_node02:
128 expression: <<node_hostname>>__equals__mon02
129 cluster_param:
130 stacklight_monitor_node02_address:
131 value_template: <<node_control_ip>>
132 stacklight_monitor_node03:
133 expression: <<node_hostname>>__equals__mon03
134 cluster_param:
135 stacklight_monitor_node03_address:
136 value_template: <<node_control_ip>>
137 openstack_dashboard:
138 expression: <<node_hostname>>__startswith__prx
139 node_class:
140 value_template:
141 - cluster.<<node_cluster>>.openstack.dashboard
142 - cluster.<<node_cluster>>.openstack.proxy
143 cluster_param:
144 openstack_proxy_node01_address:
145 value_template: <<node_control_ip>>
146 node:
147 openstack_control_node01:
148 classes:
149 - service.galera.master.cluster
150 params:
151 mysql_cluster_role: master
152 linux_system_codename: xenial
153 openstack_control_node02:
154 classes:
155 - service.galera.slave.cluster
156 params:
157 mysql_cluster_role: slave
158 linux_system_codename: xenial
159 openstack_control_node03:
160 classes:
161 - service.galera.slave.cluster
162 params:
163 mysql_cluster_role: slave
164 linux_system_codename: xenial
165 stacklight_server_node01:
166 classes:
167 - system.influxdb.server.single
168 - system.influxdb.database.stacklight
169 openstack_compute_node01:
170 params:
171 tenant_address: 10.1.0.105
172 external_address: 10.16.0.105
173 openstack_compute_node02:
174 params:
175 tenant_address: 10.1.0.106
176 external_address: 10.16.0.106
177 openstack_gateway_node01:
178 params:
179 tenant_address: 10.1.0.110
180 external_address: 10.16.0.110
181 openstack_proxy_node01:
182 classes:
183 - cluster.virtual-mcp-newton-dvr.openstack.proxy
184 params:
185 linux_system_codename: xenial