blob: 931d1372a763e72ed69ece216343a6423524ee26 [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
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +03006- system.linux.system.repo_local.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
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030017- 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
Maksym Shalamov23605e52018-06-26 15:48:10 +030029- system.manila.client
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030030- 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
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030037- cluster.virtual-offline-ssl.infra.backup.client_common
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030038- cluster.virtual-offline-ssl
39parameters:
40 _param:
41 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
42 reclass_data_revision: master
43 salt_master_environment_repository: "https://github.com/tcpcloud"
44 salt_master_environment_revision: master
45 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
46 reclass_config_master: 192.168.10.90
47 single_address: 172.16.10.100
48 salt_master_host: 127.0.0.1
49 salt_master_base_environment: prd
Maksym Shalamov23605e52018-06-26 15:48:10 +030050 manila_share_type_default_extra_specs:
51 driver_handles_share_servers: False
52 snapshot_support: True
53 create_share_from_snapshot_support : True
54 mount_snapshot_support : True
55 revert_to_snapshot_support : True
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030056 linux:
57 network:
58 interface:
59 ens4:
60 enabled: true
61 type: eth
62 proto: static
63 address: ${_param:single_address}
64 netmask: 255.255.255.0
65 salt:
66 master:
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030067 backup: true
68 initial_data:
69 engine: backupninja
70 source: ctl03
71 home_dir: /srv/volumes/backup/backupninja
72 host: cfg01.virtual-offline-ssl.local
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030073 reactor:
74 reclass/minion/classify:
75 - salt://reclass/reactor/node_register.sls
76 environment:
77 prd:
78 formula:
79 dogtag:
80 source: pkg
81 name: salt-formula-dogtag
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030082 minion:
83 backup: true
84 initial_data:
85 engine: backupninja
86 source: ctl03
87 home_dir: /srv/volumes/backup/backupninja
88 host: cfg01.virtual-offline-ssl.local
89
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030090 reclass:
91 storage:
92 class_mapping:
93 common_node:
94 expression: all
95 node_param:
96 single_address:
97 value_template: <<node_control_ip>>
98 linux_system_codename:
99 value_template: <<node_os>>
100 salt_master_host:
101 value_template: <<node_master_ip>>
102 infra_config:
103 expression: <<node_hostname>>__startswith__cfg
104 cluster_param:
105 infra_config_address:
106 value_template: <<node_control_ip>>
107 infra_config_deploy_address:
108 value_template: <<node_deploy_ip>>
109 cluster_domain:
110 value_template: <<node_domain>>
111 openstack_control01:
112 expression: <<node_hostname>>__equals__ctl01
113 cluster_param:
114 openstack_control_node01_address:
115 value_template: <<node_control_ip>>
116 openstack_control02:
117 expression: <<node_hostname>>__equals__ctl02
118 cluster_param:
119 openstack_control_node02_address:
120 value_template: <<node_control_ip>>
121 openstack_control03:
122 expression: <<node_hostname>>__equals__ctl03
123 cluster_param:
124 openstack_control_node03_address:
125 value_template: <<node_control_ip>>
126 openstack_compute:
127 expression: <<node_hostname>>__startswith__cmp
128 node_class:
129 value_template:
130 - cluster.<<node_cluster>>.openstack.compute
131 node_param:
132 tenant_address:
133 value_template: <<node_tenant_ip>>
134 external_address:
135 value_template: <<node_external_ip>>
136 openstack_gateway:
137 expression: <<node_hostname>>__startswith__gtw
138 node_class:
139 value_template:
140 - cluster.<<node_cluster>>.openstack.gateway
141 node_param:
142 tenant_address:
143 value_template: <<node_tenant_ip>>
144 external_address:
145 value_template: <<node_external_ip>>
146 cluster_param:
147 openstack_gateway_node01_address:
148 value_template: <<node_control_ip>>
149 openstack_dashboard:
150 expression: <<node_hostname>>__startswith__prx
151 node_class:
152 value_template:
153 - cluster.<<node_cluster>>.openstack.dashboard
154 - cluster.<<node_cluster>>.openstack.proxy
155 cluster_param:
156 openstack_proxy_node01_address:
157 value_template: <<node_control_ip>>
158 openstack_share:
159 expression: <<node_hostname>>__startswith__share
160 node_class:
161 value_template:
162 - cluster.<<node_cluster>>.openstack.share
163 cluster_param:
164 openstack_share_node01_address:
165 value_template: <<node_control_ip>>
166 openstack_share_node01_share_address:
167 value_template: <<node_tenant_ip>>
168 openstack_telemetry01:
169 expression: <<node_hostname>>__equals__mdb01
170 cluster_param:
171 openstack_telemetry_node01_address:
172 value_template: <<node_control_ip>>
173 openstack_telemetry02:
174 expression: <<node_hostname>>__equals__mdb02
175 cluster_param:
176 openstack_telemetry_node02_address:
177 value_template: <<node_control_ip>>
178 openstack_telemetry03:
179 expression: <<node_hostname>>__equals__mdb03
180 cluster_param:
181 openstack_telemetry_node03_address:
182 value_template: <<node_control_ip>>
183 node:
184 openstack_control_node01:
185 classes:
186 - service.galera.master.cluster
187 - service.dogtag.server.cluster.master
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +0300188 - cluster.virtual-offline-ssl.infra.backup.client_mysql
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300189 params:
190 mysql_cluster_role: master
191 linux_system_codename: xenial
192 openstack_control_node02:
193 classes:
194 - service.galera.slave.cluster
195 - 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
202 - service.dogtag.server.cluster.slave
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +0300203 - cluster.virtual-offline-ssl.infra.backup.server
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300204 params:
205 mysql_cluster_role: slave
206 linux_system_codename: xenial
207 openstack_compute_node01:
208 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400209 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300210 dpdk0_pci: '"0000:00:05.0"'
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300211 single_address: 172.16.10.105
212 tenant_address: 10.1.0.105
213 external_address: 10.16.0.105
214 openstack_compute_node02:
215 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400216 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300217 dpdk0_pci: '"0000:00:05.0"'
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300218 single_address: 172.16.10.106
219 tenant_address: 10.1.0.106
220 external_address: 10.16.0.106
221 openstack_gateway_node01:
222 params:
223 tenant_address: 10.1.0.110
224 external_address: 10.16.0.110
225 openstack_proxy_node01:
226 classes:
227 - cluster.virtual-offline-ssl.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'