blob: c4487b3e85648daeaa48c95b22833f0932f3b979 [file] [log] [blame]
vitalygusev4e9e0732018-03-19 15:38:12 +04001classes:
2- service.git.client
3- system.linux.system.single
Martin Polreicha0addcc2018-06-25 11:32:52 +02004- system.linux.system.repo.mcp.apt_mirantis.saltstack
vitalygusev4e9e0732018-03-19 15:38:12 +04005- system.linux.system.repo.mcp.apt_mirantis.openstack
Dmitry Kalashnik4eb5e8f2018-07-03 18:06:33 +04006- system.openssh.client.lab
vitalygusev4e9e0732018-03-19 15:38:12 +04007- 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
vitalygusev4e9e0732018-03-19 15:38:12 +040018- system.keystone.client.service.cinder3
vitalygusev4e9e0732018-03-19 15:38:12 +040019- system.mysql.client.single
vitalygusev4e9e0732018-03-19 15:38:12 +040020- system.reclass.storage.system.openstack_control_cluster
21- system.reclass.storage.system.openstack_compute_multi
22- system.reclass.storage.system.openstack_gateway_single
23- system.reclass.storage.system.openstack_dashboard_single
24- system.reclass.storage.system.stacklightv2_server_cluster
vitalygusev4e9e0732018-03-19 15:38:12 +040025- cluster.sl-pike-dvr.openstack.proxy
26- cluster.sl-pike-dvr.stacklight.proxy
27- cluster.sl-pike-dvr
28parameters:
29 _param:
30 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
31 reclass_data_revision: master
32 salt_master_environment_repository: "https://github.com/tcpcloud"
33 salt_master_environment_revision: master
34 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Dmitry Kalashnik4eb5e8f2018-07-03 18:06:33 +040035 reclass_config_master: ${_param:infra_config_deploy_address}
36 single_address: ${_param:infra_config_address}
Michal Kobusaab8a402018-03-21 18:55:36 +010037 reclass_config_master_gateway: 192.168.10.1
vitalygusev4e9e0732018-03-19 15:38:12 +040038 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:
Michal Kobusaab8a402018-03-21 18:55:36 +010044 ens3:
45 enabled: true
46 type: eth
47 proto: static
48 address: ${_param:reclass_config_master}
49 gateway: ${_param:reclass_config_master_gateway}
50 netmask: 255.255.255.0
vitalygusev4e9e0732018-03-19 15:38:12 +040051 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 backup: true
68 reactor:
69 reclass/minion/classify:
70 - salt://reclass/reactor/node_register.sls
71 minion:
72 backup: true
73 reclass:
74 storage:
75 class_mapping:
76 common_node:
77 expression: all
78 node_param:
79 single_address:
80 value_template: <<node_control_ip>>
81 linux_system_codename:
82 value_template: <<node_os>>
83 salt_master_host:
84 value_template: <<node_master_ip>>
85 infra_config:
86 expression: <<node_hostname>>__startswith__cfg
87 cluster_param:
88 infra_config_address:
89 value_template: <<node_control_ip>>
90 infra_config_deploy_address:
91 value_template: <<node_deploy_ip>>
92 cluster_domain:
93 value_template: <<node_domain>>
94 openstack_control01:
95 expression: <<node_hostname>>__equals__ctl01
96 cluster_param:
97 openstack_control_node01_address:
98 value_template: <<node_control_ip>>
99 openstack_control02:
100 expression: <<node_hostname>>__equals__ctl02
101 cluster_param:
102 openstack_control_node02_address:
103 value_template: <<node_control_ip>>
104 openstack_control03:
105 expression: <<node_hostname>>__equals__ctl03
106 cluster_param:
107 openstack_control_node03_address:
108 value_template: <<node_control_ip>>
109 openstack_compute:
110 expression: <<node_hostname>>__startswith__cmp
111 node_class:
112 value_template:
113 - cluster.<<node_cluster>>.openstack.compute
114 node_param:
115 tenant_address:
116 value_template: <<node_tenant_ip>>
117 external_address:
118 value_template: <<node_external_ip>>
119 openstack_gateway:
120 expression: <<node_hostname>>__startswith__gtw
121 node_class:
122 value_template:
123 - cluster.<<node_cluster>>.openstack.gateway
124 node_param:
125 tenant_address:
126 value_template: <<node_tenant_ip>>
127 external_address:
128 value_template: <<node_external_ip>>
129 cluster_param:
130 openstack_gateway_node01_address:
131 value_template: <<node_control_ip>>
Dmitry Kalashnik4eb5e8f2018-07-03 18:06:33 +0400132 openstack_compute:
133 expression: <<node_hostname>>__startswith__cmp
134 node_class:
135 value_template:
136 - cluster.<<node_cluster>>.openstack.compute
137 node_param:
138 tenant_address:
139 value_template: <<node_tenant_ip>>
140 external_address:
141 value_template: <<node_external_ip>>
vitalygusev4e9e0732018-03-19 15:38:12 +0400142 stacklight_monitor_node01:
143 expression: <<node_hostname>>__equals__mon01
144 cluster_param:
145 stacklight_monitor_node01_address:
146 value_template: <<node_control_ip>>
147 stacklight_monitor_node02:
148 expression: <<node_hostname>>__equals__mon02
149 cluster_param:
150 stacklight_monitor_node02_address:
151 value_template: <<node_control_ip>>
152 stacklight_monitor_node03:
153 expression: <<node_hostname>>__equals__mon03
154 cluster_param:
155 stacklight_monitor_node03_address:
156 value_template: <<node_control_ip>>
157 openstack_dashboard:
158 expression: <<node_hostname>>__startswith__prx
159 node_class:
160 value_template:
161 - cluster.<<node_cluster>>.openstack.dashboard
162 - cluster.<<node_cluster>>.openstack.proxy
163 cluster_param:
164 openstack_proxy_node01_address:
165 value_template: <<node_control_ip>>
166 node:
167 openstack_control_node01:
168 classes:
vitalygusev4e9e0732018-03-19 15:38:12 +0400169 - service.galera.master.cluster
170 params:
171 mysql_cluster_role: master
172 linux_system_codename: xenial
173 openstack_control_node02:
174 classes:
175 - service.galera.slave.cluster
176 params:
177 mysql_cluster_role: slave
178 linux_system_codename: xenial
179 openstack_control_node03:
180 classes:
vitalygusev4e9e0732018-03-19 15:38:12 +0400181 - service.galera.slave.cluster
182 params:
183 mysql_cluster_role: slave
184 linux_system_codename: xenial
185 stacklight_server_node01:
186 classes:
187 - system.influxdb.server.single
188 - system.influxdb.database.stacklight
189 openstack_compute_node01:
190 params:
vitalygusev4e9e0732018-03-19 15:38:12 +0400191 tenant_address: 10.1.0.105
192 external_address: 10.16.0.105
193 openstack_compute_node02:
194 params:
vitalygusev4e9e0732018-03-19 15:38:12 +0400195 tenant_address: 10.1.0.106
196 external_address: 10.16.0.106
197 openstack_gateway_node01:
198 params:
199 tenant_address: 10.1.0.110
200 external_address: 10.16.0.110
201 openstack_proxy_node01:
202 classes:
Dmitry Kalashnik4eb5e8f2018-07-03 18:06:33 +0400203 - cluster.sl-pike-dvr.openstack.proxy
vitalygusev4e9e0732018-03-19 15:38:12 +0400204 params:
205 linux_system_codename: xenial