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