blob: bd2de6723398c06e75fa9113184258d472084396 [file] [log] [blame]
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +03001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.single.debian
azvyagintsev98cba952018-07-13 12:40:53 +03005- system.linux.system.repo.mcp.apt_mirantis.saltstack
azvyagintsev03e26b12018-10-22 16:34:31 +03006- system.linux.system.repo.mcp.apt_mirantis.openstack
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +03007- system.salt.master.pkg
8- system.salt.master.api
9- system.salt.master.formula.pkg.manila
10- system.salt.master.formula.pkg.gnocchi
11- system.salt.master.formula.pkg.panko
12# Add when reclass bumped
13#-salt/master/formula/pkg/dogtag.yml
14- system.reclass.storage.salt
15- system.salt.minion.ca.salt_master
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030016- system.keystone.client.single
17- system.keystone.client.service.nova21
18- system.keystone.client.service.nova-placement
19- system.keystone.client.service.cinder3
20- system.keystone.client.service.designate
21- system.keystone.client.service.manila
22- system.keystone.client.service.manila2
23- system.keystone.client.service.aodh
24- system.keystone.client.service.ceilometer
25- system.keystone.client.service.panko
26- system.keystone.client.service.gnocchi
27- system.keystone.client.service.barbican
Mykyta Karpin015e7b32018-07-26 11:00:02 +030028- system.gnocchi.client
29- system.gnocchi.client.v1.archive_policy.default
Maksym Shalamov23605e52018-06-26 15:48:10 +030030- system.manila.client
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030031- system.reclass.storage.system.openstack_dns_cluster
32- system.reclass.storage.system.openstack_control_cluster
33- system.reclass.storage.system.openstack_compute_multi
34- system.reclass.storage.system.openstack_gateway_single
35- system.reclass.storage.system.openstack_dashboard_single
36- system.reclass.storage.system.openstack_share_single
37- system.reclass.storage.system.openstack_telemetry_cluster
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030038- cluster.virtual-offline-ssl.infra.backup.client_common
Tatyana Leontovich1e8154d2018-11-29 18:34:22 +020039- cluster.virtual-offline-ssl.infra.runtest
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030040- cluster.virtual-offline-ssl
41parameters:
42 _param:
43 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
44 reclass_data_revision: master
45 salt_master_environment_repository: "https://github.com/tcpcloud"
46 salt_master_environment_revision: master
47 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
48 reclass_config_master: 192.168.10.90
49 single_address: 172.16.10.100
50 salt_master_host: 127.0.0.1
51 salt_master_base_environment: prd
Maksym Shalamov23605e52018-06-26 15:48:10 +030052 manila_share_type_default_extra_specs:
53 driver_handles_share_servers: False
54 snapshot_support: True
55 create_share_from_snapshot_support : True
56 mount_snapshot_support : True
57 revert_to_snapshot_support : True
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030058 linux:
59 network:
60 interface:
61 ens4:
62 enabled: true
63 type: eth
64 proto: static
65 address: ${_param:single_address}
66 netmask: 255.255.255.0
67 salt:
68 master:
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030069 backup: true
70 initial_data:
71 engine: backupninja
72 source: ctl03
73 home_dir: /srv/volumes/backup/backupninja
74 host: cfg01.virtual-offline-ssl.local
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030075 reactor:
76 reclass/minion/classify:
77 - salt://reclass/reactor/node_register.sls
78 environment:
79 prd:
80 formula:
81 dogtag:
82 source: pkg
83 name: salt-formula-dogtag
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030084 minion:
85 backup: true
86 initial_data:
87 engine: backupninja
88 source: ctl03
89 home_dir: /srv/volumes/backup/backupninja
90 host: cfg01.virtual-offline-ssl.local
91
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030092 reclass:
93 storage:
94 class_mapping:
95 common_node:
96 expression: all
97 node_param:
98 single_address:
99 value_template: <<node_control_ip>>
100 linux_system_codename:
101 value_template: <<node_os>>
102 salt_master_host:
103 value_template: <<node_master_ip>>
104 infra_config:
105 expression: <<node_hostname>>__startswith__cfg
106 cluster_param:
107 infra_config_address:
108 value_template: <<node_control_ip>>
109 infra_config_deploy_address:
110 value_template: <<node_deploy_ip>>
111 cluster_domain:
112 value_template: <<node_domain>>
113 openstack_control01:
114 expression: <<node_hostname>>__equals__ctl01
115 cluster_param:
116 openstack_control_node01_address:
117 value_template: <<node_control_ip>>
118 openstack_control02:
119 expression: <<node_hostname>>__equals__ctl02
120 cluster_param:
121 openstack_control_node02_address:
122 value_template: <<node_control_ip>>
123 openstack_control03:
124 expression: <<node_hostname>>__equals__ctl03
125 cluster_param:
126 openstack_control_node03_address:
127 value_template: <<node_control_ip>>
128 openstack_compute:
129 expression: <<node_hostname>>__startswith__cmp
130 node_class:
131 value_template:
132 - cluster.<<node_cluster>>.openstack.compute
133 node_param:
134 tenant_address:
135 value_template: <<node_tenant_ip>>
136 external_address:
137 value_template: <<node_external_ip>>
138 openstack_gateway:
139 expression: <<node_hostname>>__startswith__gtw
140 node_class:
141 value_template:
142 - cluster.<<node_cluster>>.openstack.gateway
143 node_param:
144 tenant_address:
145 value_template: <<node_tenant_ip>>
146 external_address:
147 value_template: <<node_external_ip>>
148 cluster_param:
149 openstack_gateway_node01_address:
150 value_template: <<node_control_ip>>
151 openstack_dashboard:
152 expression: <<node_hostname>>__startswith__prx
153 node_class:
154 value_template:
155 - cluster.<<node_cluster>>.openstack.dashboard
156 - cluster.<<node_cluster>>.openstack.proxy
157 cluster_param:
158 openstack_proxy_node01_address:
159 value_template: <<node_control_ip>>
160 openstack_share:
161 expression: <<node_hostname>>__startswith__share
162 node_class:
163 value_template:
164 - cluster.<<node_cluster>>.openstack.share
165 cluster_param:
166 openstack_share_node01_address:
167 value_template: <<node_control_ip>>
168 openstack_share_node01_share_address:
169 value_template: <<node_tenant_ip>>
170 openstack_telemetry01:
171 expression: <<node_hostname>>__equals__mdb01
172 cluster_param:
173 openstack_telemetry_node01_address:
174 value_template: <<node_control_ip>>
175 openstack_telemetry02:
176 expression: <<node_hostname>>__equals__mdb02
177 cluster_param:
178 openstack_telemetry_node02_address:
179 value_template: <<node_control_ip>>
180 openstack_telemetry03:
181 expression: <<node_hostname>>__equals__mdb03
182 cluster_param:
183 openstack_telemetry_node03_address:
184 value_template: <<node_control_ip>>
185 node:
186 openstack_control_node01:
187 classes:
188 - service.galera.master.cluster
189 - service.dogtag.server.cluster.master
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +0300190 - cluster.virtual-offline-ssl.infra.backup.client_mysql
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300191 params:
192 mysql_cluster_role: master
193 linux_system_codename: xenial
194 openstack_control_node02:
195 classes:
196 - service.galera.slave.cluster
197 - service.dogtag.server.cluster.slave
198 params:
199 mysql_cluster_role: slave
200 linux_system_codename: xenial
201 openstack_control_node03:
202 classes:
203 - service.galera.slave.cluster
204 - service.dogtag.server.cluster.slave
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +0300205 - cluster.virtual-offline-ssl.infra.backup.server
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300206 params:
207 mysql_cluster_role: slave
208 linux_system_codename: xenial
209 openstack_compute_node01:
210 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400211 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300212 dpdk0_pci: '"0000:00:05.0"'
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300213 single_address: 172.16.10.105
214 tenant_address: 10.1.0.105
215 external_address: 10.16.0.105
216 openstack_compute_node02:
217 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400218 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300219 dpdk0_pci: '"0000:00:05.0"'
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300220 single_address: 172.16.10.106
221 tenant_address: 10.1.0.106
222 external_address: 10.16.0.106
223 openstack_gateway_node01:
224 params:
225 tenant_address: 10.1.0.110
226 external_address: 10.16.0.110
227 openstack_proxy_node01:
228 classes:
229 - cluster.virtual-offline-ssl.openstack.proxy
230 params:
231 linux_system_codename: xenial
232 openstack_telemetry_node01:
233 params:
234 # create resources only from 1 controller
235 # to prevent race conditions
236 ceilometer_create_gnocchi_resources: true
237 redis_cluster_role: 'master'
238 openstack_telemetry_node02:
239 params:
240 redis_cluster_role: 'slave'
241 openstack_telemetry_node03:
242 params:
243 redis_cluster_role: 'slave'