blob: a6a5d2d76e0fb0dda75514fe6582b0f9fef4a626 [file] [log] [blame]
Vasyl Saienko060481c2018-03-23 14:29:13 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.single.debian
Martin Polreicha0addcc2018-06-25 11:32:52 +02005- system.linux.system.repo.mcp.apt_mirantis.saltstack
Vasyl Saienko060481c2018-03-23 14:29:13 +02006- system.linux.system.repo.mcp.apt_mirantis.openstack
7- system.openssh.client.lab
8- system.salt.master.pkg
9- system.salt.master.api
10- system.salt.master.formula.pkg.manila
11- system.salt.master.formula.pkg.gnocchi
12- system.salt.master.formula.pkg.panko
13# Add when reclass bumped
14#-salt/master/formula/pkg/dogtag.yml
15- system.reclass.storage.salt
16- system.salt.minion.ca.salt_master
17- system.sphinx.server.doc.reclass
18- system.keystone.client.single
19- system.keystone.client.service.nova21
20- system.keystone.client.service.nova-placement
21- system.keystone.client.service.cinder3
22- system.keystone.client.service.designate
23- system.keystone.client.service.manila
24- system.keystone.client.service.manila2
25- system.keystone.client.service.aodh
26- system.keystone.client.service.ceilometer
27- system.keystone.client.service.panko
28- system.keystone.client.service.gnocchi
29- system.keystone.client.service.barbican
Mykyta Karpin976cc202018-07-11 06:28:24 +030030- system.gnocchi.client
31- system.gnocchi.client.v1.archive_policy.default
Vasyl Saienko060481c2018-03-23 14:29:13 +020032- system.reclass.storage.system.openstack_dns_cluster
33- system.reclass.storage.system.openstack_control_cluster
34- system.reclass.storage.system.openstack_compute_multi
35- system.reclass.storage.system.openstack_gateway_single
36- system.reclass.storage.system.openstack_dashboard_single
37- system.reclass.storage.system.openstack_share_single
38- system.reclass.storage.system.openstack_telemetry_cluster
39- cluster.virtual-mcp-pike-dvr-ssl-barbican
40parameters:
41 _param:
42 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
43 reclass_data_revision: master
44 salt_master_environment_repository: "https://github.com/tcpcloud"
45 salt_master_environment_revision: master
46 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
47 reclass_config_master: 192.168.10.90
48 single_address: 172.16.10.100
49 salt_master_host: 127.0.0.1
50 salt_master_base_environment: prd
51 linux:
52 network:
53 interface:
54 ens4:
55 enabled: true
56 type: eth
57 proto: static
58 address: ${_param:single_address}
59 netmask: 255.255.255.0
60 salt:
61 master:
62 reactor:
63 reclass/minion/classify:
64 - salt://reclass/reactor/node_register.sls
65 environment:
66 prd:
67 formula:
68 dogtag:
69 source: pkg
70 name: salt-formula-dogtag
71 reclass:
72 storage:
73 class_mapping:
74 common_node:
75 expression: all
76 node_param:
77 single_address:
78 value_template: <<node_control_ip>>
79 linux_system_codename:
80 value_template: <<node_os>>
81 salt_master_host:
82 value_template: <<node_master_ip>>
83 infra_config:
84 expression: <<node_hostname>>__startswith__cfg
85 cluster_param:
86 infra_config_address:
87 value_template: <<node_control_ip>>
88 infra_config_deploy_address:
89 value_template: <<node_deploy_ip>>
90 cluster_domain:
91 value_template: <<node_domain>>
92 openstack_control01:
93 expression: <<node_hostname>>__equals__ctl01
94 cluster_param:
95 openstack_control_node01_address:
96 value_template: <<node_control_ip>>
97 openstack_control02:
98 expression: <<node_hostname>>__equals__ctl02
99 cluster_param:
100 openstack_control_node02_address:
101 value_template: <<node_control_ip>>
102 openstack_control03:
103 expression: <<node_hostname>>__equals__ctl03
104 cluster_param:
105 openstack_control_node03_address:
106 value_template: <<node_control_ip>>
107 openstack_compute:
108 expression: <<node_hostname>>__startswith__cmp
109 node_class:
110 value_template:
111 - cluster.<<node_cluster>>.openstack.compute
112 node_param:
113 tenant_address:
114 value_template: <<node_tenant_ip>>
115 external_address:
116 value_template: <<node_external_ip>>
Mykyta Karpin365e2942018-04-03 16:18:32 +0300117 openstack_dns01:
118 expression: <<node_hostname>>__equals__dns01
119 cluster_param:
120 openstack_dns_node01_address:
121 value_template: <<node_control_ip>>
122 openstack_dns02:
123 expression: <<node_hostname>>__equals__dns02
124 cluster_param:
125 openstack_dns_node02_address:
126 value_template: <<node_control_ip>>
Vasyl Saienko060481c2018-03-23 14:29:13 +0200127 openstack_gateway:
128 expression: <<node_hostname>>__startswith__gtw
129 node_class:
130 value_template:
131 - cluster.<<node_cluster>>.openstack.gateway
132 node_param:
133 tenant_address:
134 value_template: <<node_tenant_ip>>
135 external_address:
136 value_template: <<node_external_ip>>
137 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300138 openstack_gateway_address:
Vasyl Saienko060481c2018-03-23 14:29:13 +0200139 value_template: <<node_control_ip>>
140 openstack_dashboard:
141 expression: <<node_hostname>>__startswith__prx
142 node_class:
143 value_template:
144 - cluster.<<node_cluster>>.openstack.dashboard
145 - cluster.<<node_cluster>>.openstack.proxy
146 cluster_param:
147 openstack_proxy_node01_address:
148 value_template: <<node_control_ip>>
149 openstack_share:
150 expression: <<node_hostname>>__startswith__share
151 node_class:
152 value_template:
153 - cluster.<<node_cluster>>.openstack.share
154 cluster_param:
155 openstack_share_node01_address:
156 value_template: <<node_control_ip>>
157 openstack_share_node01_share_address:
158 value_template: <<node_tenant_ip>>
159 openstack_telemetry01:
160 expression: <<node_hostname>>__equals__mdb01
161 cluster_param:
162 openstack_telemetry_node01_address:
163 value_template: <<node_control_ip>>
164 openstack_telemetry02:
165 expression: <<node_hostname>>__equals__mdb02
166 cluster_param:
167 openstack_telemetry_node02_address:
168 value_template: <<node_control_ip>>
169 openstack_telemetry03:
170 expression: <<node_hostname>>__equals__mdb03
171 cluster_param:
172 openstack_telemetry_node03_address:
173 value_template: <<node_control_ip>>
174 node:
175 openstack_control_node01:
176 classes:
177 - service.galera.master.cluster
178 - service.dogtag.server.cluster.master
179 params:
180 mysql_cluster_role: master
181 linux_system_codename: xenial
182 openstack_control_node02:
183 classes:
184 - service.galera.slave.cluster
185 - service.dogtag.server.cluster.slave
186 params:
187 mysql_cluster_role: slave
188 linux_system_codename: xenial
189 openstack_control_node03:
190 classes:
191 - service.galera.slave.cluster
192 - service.dogtag.server.cluster.slave
193 params:
194 mysql_cluster_role: slave
195 linux_system_codename: xenial
196 openstack_compute_node01:
197 params:
198 single_address: 172.16.10.105
199 tenant_address: 10.1.0.105
200 external_address: 10.16.0.105
201 openstack_compute_node02:
202 params:
203 single_address: 172.16.10.106
204 tenant_address: 10.1.0.106
205 external_address: 10.16.0.106
206 openstack_gateway_node01:
207 params:
208 tenant_address: 10.1.0.110
209 external_address: 10.16.0.110
Oleksii Butenko4f729322018-04-16 16:25:32 +0300210 openstack_share_node01:
211 params:
212 single_address: 172.16.10.130
213 tenant_address: 10.1.0.130
Vasyl Saienko060481c2018-03-23 14:29:13 +0200214 openstack_proxy_node01:
215 classes:
216 - cluster.virtual-mcp-pike-dvr-ssl-barbican.openstack.proxy
217 params:
218 linux_system_codename: xenial
219 openstack_telemetry_node01:
220 params:
221 # create resources only from 1 controller
222 # to prevent race conditions
223 ceilometer_create_gnocchi_resources: true
224 redis_cluster_role: 'master'
225 openstack_telemetry_node02:
226 params:
227 redis_cluster_role: 'slave'
228 openstack_telemetry_node03:
229 params:
230 redis_cluster_role: 'slave'