blob: da13d9fbd3275005f2595413fb234cbeec518566 [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
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
Maksym Shalamov23605e52018-06-26 15:48:10 +030028- system.manila.client
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030029- system.reclass.storage.system.openstack_dns_cluster
30- system.reclass.storage.system.openstack_control_cluster
31- system.reclass.storage.system.openstack_compute_multi
32- system.reclass.storage.system.openstack_gateway_single
33- system.reclass.storage.system.openstack_dashboard_single
34- system.reclass.storage.system.openstack_share_single
35- system.reclass.storage.system.openstack_telemetry_cluster
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030036- cluster.virtual-offline-ssl.infra.backup.client_common
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030037- cluster.virtual-offline-ssl
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
Maksym Shalamov23605e52018-06-26 15:48:10 +030049 manila_share_type_default_extra_specs:
50 driver_handles_share_servers: False
51 snapshot_support: True
52 create_share_from_snapshot_support : True
53 mount_snapshot_support : True
54 revert_to_snapshot_support : True
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030055 linux:
56 network:
57 interface:
58 ens4:
59 enabled: true
60 type: eth
61 proto: static
62 address: ${_param:single_address}
63 netmask: 255.255.255.0
64 salt:
65 master:
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030066 backup: true
67 initial_data:
68 engine: backupninja
69 source: ctl03
70 home_dir: /srv/volumes/backup/backupninja
71 host: cfg01.virtual-offline-ssl.local
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030072 reactor:
73 reclass/minion/classify:
74 - salt://reclass/reactor/node_register.sls
75 environment:
76 prd:
77 formula:
78 dogtag:
79 source: pkg
80 name: salt-formula-dogtag
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030081 minion:
82 backup: true
83 initial_data:
84 engine: backupninja
85 source: ctl03
86 home_dir: /srv/volumes/backup/backupninja
87 host: cfg01.virtual-offline-ssl.local
88
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030089 reclass:
90 storage:
91 class_mapping:
92 common_node:
93 expression: all
94 node_param:
95 single_address:
96 value_template: <<node_control_ip>>
97 linux_system_codename:
98 value_template: <<node_os>>
99 salt_master_host:
100 value_template: <<node_master_ip>>
101 infra_config:
102 expression: <<node_hostname>>__startswith__cfg
103 cluster_param:
104 infra_config_address:
105 value_template: <<node_control_ip>>
106 infra_config_deploy_address:
107 value_template: <<node_deploy_ip>>
108 cluster_domain:
109 value_template: <<node_domain>>
110 openstack_control01:
111 expression: <<node_hostname>>__equals__ctl01
112 cluster_param:
113 openstack_control_node01_address:
114 value_template: <<node_control_ip>>
115 openstack_control02:
116 expression: <<node_hostname>>__equals__ctl02
117 cluster_param:
118 openstack_control_node02_address:
119 value_template: <<node_control_ip>>
120 openstack_control03:
121 expression: <<node_hostname>>__equals__ctl03
122 cluster_param:
123 openstack_control_node03_address:
124 value_template: <<node_control_ip>>
125 openstack_compute:
126 expression: <<node_hostname>>__startswith__cmp
127 node_class:
128 value_template:
129 - cluster.<<node_cluster>>.openstack.compute
130 node_param:
131 tenant_address:
132 value_template: <<node_tenant_ip>>
133 external_address:
134 value_template: <<node_external_ip>>
135 openstack_gateway:
136 expression: <<node_hostname>>__startswith__gtw
137 node_class:
138 value_template:
139 - cluster.<<node_cluster>>.openstack.gateway
140 node_param:
141 tenant_address:
142 value_template: <<node_tenant_ip>>
143 external_address:
144 value_template: <<node_external_ip>>
145 cluster_param:
146 openstack_gateway_node01_address:
147 value_template: <<node_control_ip>>
148 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
186 - service.dogtag.server.cluster.master
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +0300187 - cluster.virtual-offline-ssl.infra.backup.client_mysql
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300188 params:
189 mysql_cluster_role: master
190 linux_system_codename: xenial
191 openstack_control_node02:
192 classes:
193 - service.galera.slave.cluster
194 - service.dogtag.server.cluster.slave
195 params:
196 mysql_cluster_role: slave
197 linux_system_codename: xenial
198 openstack_control_node03:
199 classes:
200 - service.galera.slave.cluster
201 - service.dogtag.server.cluster.slave
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +0300202 - cluster.virtual-offline-ssl.infra.backup.server
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300203 params:
204 mysql_cluster_role: slave
205 linux_system_codename: xenial
206 openstack_compute_node01:
207 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400208 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300209 dpdk0_pci: '"0000:00:05.0"'
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300210 single_address: 172.16.10.105
211 tenant_address: 10.1.0.105
212 external_address: 10.16.0.105
213 openstack_compute_node02:
214 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400215 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300216 dpdk0_pci: '"0000:00:05.0"'
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300217 single_address: 172.16.10.106
218 tenant_address: 10.1.0.106
219 external_address: 10.16.0.106
220 openstack_gateway_node01:
221 params:
222 tenant_address: 10.1.0.110
223 external_address: 10.16.0.110
224 openstack_proxy_node01:
225 classes:
226 - cluster.virtual-offline-ssl.openstack.proxy
227 params:
228 linux_system_codename: xenial
229 openstack_telemetry_node01:
230 params:
231 # create resources only from 1 controller
232 # to prevent race conditions
233 ceilometer_create_gnocchi_resources: true
234 redis_cluster_role: 'master'
235 openstack_telemetry_node02:
236 params:
237 redis_cluster_role: 'slave'
238 openstack_telemetry_node03:
239 params:
240 redis_cluster_role: 'slave'