blob: bafc033991a12ba566deb29c0a32c64f8021f4a0 [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
Vasyl Saienko060481c2018-03-23 14:29:13 +020017- system.keystone.client.single
18- system.keystone.client.service.nova21
19- system.keystone.client.service.nova-placement
20- system.keystone.client.service.cinder3
21- system.keystone.client.service.designate
22- system.keystone.client.service.manila
23- system.keystone.client.service.manila2
24- system.keystone.client.service.aodh
25- system.keystone.client.service.ceilometer
26- system.keystone.client.service.panko
27- system.keystone.client.service.gnocchi
28- system.keystone.client.service.barbican
Mykyta Karpin976cc202018-07-11 06:28:24 +030029- system.gnocchi.client
30- system.gnocchi.client.v1.archive_policy.default
Maksym Shalamov23605e52018-06-26 15:48:10 +030031- system.manila.client
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
Maksym Shalamov23605e52018-06-26 15:48:10 +030051 manila_share_type_default_extra_specs:
52 driver_handles_share_servers: False
53 snapshot_support: True
54 create_share_from_snapshot_support : True
55 mount_snapshot_support : True
56 revert_to_snapshot_support : True
Vasyl Saienko060481c2018-03-23 14:29:13 +020057 linux:
58 network:
59 interface:
60 ens4:
61 enabled: true
62 type: eth
63 proto: static
64 address: ${_param:single_address}
65 netmask: 255.255.255.0
66 salt:
67 master:
68 reactor:
69 reclass/minion/classify:
70 - salt://reclass/reactor/node_register.sls
71 environment:
72 prd:
73 formula:
74 dogtag:
75 source: pkg
76 name: salt-formula-dogtag
77 reclass:
78 storage:
79 class_mapping:
80 common_node:
81 expression: all
82 node_param:
83 single_address:
84 value_template: <<node_control_ip>>
85 linux_system_codename:
86 value_template: <<node_os>>
87 salt_master_host:
88 value_template: <<node_master_ip>>
89 infra_config:
90 expression: <<node_hostname>>__startswith__cfg
91 cluster_param:
92 infra_config_address:
93 value_template: <<node_control_ip>>
94 infra_config_deploy_address:
95 value_template: <<node_deploy_ip>>
96 cluster_domain:
97 value_template: <<node_domain>>
98 openstack_control01:
99 expression: <<node_hostname>>__equals__ctl01
100 cluster_param:
101 openstack_control_node01_address:
102 value_template: <<node_control_ip>>
103 openstack_control02:
104 expression: <<node_hostname>>__equals__ctl02
105 cluster_param:
106 openstack_control_node02_address:
107 value_template: <<node_control_ip>>
108 openstack_control03:
109 expression: <<node_hostname>>__equals__ctl03
110 cluster_param:
111 openstack_control_node03_address:
112 value_template: <<node_control_ip>>
113 openstack_compute:
114 expression: <<node_hostname>>__startswith__cmp
115 node_class:
116 value_template:
117 - cluster.<<node_cluster>>.openstack.compute
118 node_param:
119 tenant_address:
120 value_template: <<node_tenant_ip>>
121 external_address:
122 value_template: <<node_external_ip>>
Mykyta Karpin365e2942018-04-03 16:18:32 +0300123 openstack_dns01:
124 expression: <<node_hostname>>__equals__dns01
125 cluster_param:
126 openstack_dns_node01_address:
127 value_template: <<node_control_ip>>
128 openstack_dns02:
129 expression: <<node_hostname>>__equals__dns02
130 cluster_param:
131 openstack_dns_node02_address:
132 value_template: <<node_control_ip>>
Vasyl Saienko060481c2018-03-23 14:29:13 +0200133 openstack_gateway:
134 expression: <<node_hostname>>__startswith__gtw
135 node_class:
136 value_template:
137 - cluster.<<node_cluster>>.openstack.gateway
138 node_param:
139 tenant_address:
140 value_template: <<node_tenant_ip>>
141 external_address:
142 value_template: <<node_external_ip>>
143 cluster_param:
Mykyta Karpin73edc212018-04-05 14:26:21 +0300144 openstack_gateway_address:
Vasyl Saienko060481c2018-03-23 14:29:13 +0200145 value_template: <<node_control_ip>>
Mykyta Karpin058dc732018-07-19 14:34:31 +0300146 openstack_gateway_node01_external_address:
147 value_template: <<node_external_ip>>
Vasyl Saienko060481c2018-03-23 14:29:13 +0200148 openstack_dashboard:
149 expression: <<node_hostname>>__startswith__prx
150 node_class:
151 value_template:
152 - cluster.<<node_cluster>>.openstack.dashboard
153 - cluster.<<node_cluster>>.openstack.proxy
154 cluster_param:
155 openstack_proxy_node01_address:
156 value_template: <<node_control_ip>>
157 openstack_share:
158 expression: <<node_hostname>>__startswith__share
159 node_class:
160 value_template:
161 - cluster.<<node_cluster>>.openstack.share
162 cluster_param:
163 openstack_share_node01_address:
164 value_template: <<node_control_ip>>
165 openstack_share_node01_share_address:
166 value_template: <<node_tenant_ip>>
167 openstack_telemetry01:
168 expression: <<node_hostname>>__equals__mdb01
169 cluster_param:
170 openstack_telemetry_node01_address:
171 value_template: <<node_control_ip>>
172 openstack_telemetry02:
173 expression: <<node_hostname>>__equals__mdb02
174 cluster_param:
175 openstack_telemetry_node02_address:
176 value_template: <<node_control_ip>>
177 openstack_telemetry03:
178 expression: <<node_hostname>>__equals__mdb03
179 cluster_param:
180 openstack_telemetry_node03_address:
181 value_template: <<node_control_ip>>
182 node:
183 openstack_control_node01:
184 classes:
185 - service.galera.master.cluster
Dennis Dmitriev100a5ff2018-09-18 16:36:39 +0300186 - service.galera.ssl.master
Vasyl Saienko060481c2018-03-23 14:29:13 +0200187 - service.dogtag.server.cluster.master
188 params:
189 mysql_cluster_role: master
190 linux_system_codename: xenial
191 openstack_control_node02:
192 classes:
193 - service.galera.slave.cluster
Dennis Dmitriev100a5ff2018-09-18 16:36:39 +0300194 - service.galera.ssl.slave
Vasyl Saienko060481c2018-03-23 14:29:13 +0200195 - service.dogtag.server.cluster.slave
196 params:
197 mysql_cluster_role: slave
198 linux_system_codename: xenial
199 openstack_control_node03:
200 classes:
201 - service.galera.slave.cluster
Dennis Dmitriev100a5ff2018-09-18 16:36:39 +0300202 - service.galera.ssl.slave
Vasyl Saienko060481c2018-03-23 14:29:13 +0200203 - service.dogtag.server.cluster.slave
204 params:
205 mysql_cluster_role: slave
206 linux_system_codename: xenial
207 openstack_compute_node01:
208 params:
209 single_address: 172.16.10.105
210 tenant_address: 10.1.0.105
211 external_address: 10.16.0.105
212 openstack_compute_node02:
213 params:
214 single_address: 172.16.10.106
215 tenant_address: 10.1.0.106
216 external_address: 10.16.0.106
217 openstack_gateway_node01:
218 params:
219 tenant_address: 10.1.0.110
Mykyta Karpin058dc732018-07-19 14:34:31 +0300220 external_address: ${_param:openstack_gateway_node01_external_address}
Oleksii Butenko4f729322018-04-16 16:25:32 +0300221 openstack_share_node01:
222 params:
223 single_address: 172.16.10.130
224 tenant_address: 10.1.0.130
Vasyl Saienko060481c2018-03-23 14:29:13 +0200225 openstack_proxy_node01:
226 classes:
227 - cluster.virtual-mcp-pike-dvr-ssl-barbican.openstack.proxy
228 params:
229 linux_system_codename: xenial
230 openstack_telemetry_node01:
231 params:
232 # create resources only from 1 controller
233 # to prevent race conditions
234 ceilometer_create_gnocchi_resources: true
235 redis_cluster_role: 'master'
236 openstack_telemetry_node02:
237 params:
238 redis_cluster_role: 'slave'
239 openstack_telemetry_node03:
240 params:
241 redis_cluster_role: 'slave'