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