blob: 7dc2280629cd7e280163cf3b60f0bde9a4e61ad8 [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 Leontovich4f9d1a92018-03-28 15:36:40 +030039- cluster.virtual-offline-ssl
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
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030057 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:
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030068 backup: true
69 initial_data:
70 engine: backupninja
71 source: ctl03
72 home_dir: /srv/volumes/backup/backupninja
73 host: cfg01.virtual-offline-ssl.local
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030074 reactor:
75 reclass/minion/classify:
76 - salt://reclass/reactor/node_register.sls
77 environment:
78 prd:
79 formula:
80 dogtag:
81 source: pkg
82 name: salt-formula-dogtag
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030083 minion:
84 backup: true
85 initial_data:
86 engine: backupninja
87 source: ctl03
88 home_dir: /srv/volumes/backup/backupninja
89 host: cfg01.virtual-offline-ssl.local
90
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +030091 reclass:
92 storage:
93 class_mapping:
94 common_node:
95 expression: all
96 node_param:
97 single_address:
98 value_template: <<node_control_ip>>
99 linux_system_codename:
100 value_template: <<node_os>>
101 salt_master_host:
102 value_template: <<node_master_ip>>
103 infra_config:
104 expression: <<node_hostname>>__startswith__cfg
105 cluster_param:
106 infra_config_address:
107 value_template: <<node_control_ip>>
108 infra_config_deploy_address:
109 value_template: <<node_deploy_ip>>
110 cluster_domain:
111 value_template: <<node_domain>>
112 openstack_control01:
113 expression: <<node_hostname>>__equals__ctl01
114 cluster_param:
115 openstack_control_node01_address:
116 value_template: <<node_control_ip>>
117 openstack_control02:
118 expression: <<node_hostname>>__equals__ctl02
119 cluster_param:
120 openstack_control_node02_address:
121 value_template: <<node_control_ip>>
122 openstack_control03:
123 expression: <<node_hostname>>__equals__ctl03
124 cluster_param:
125 openstack_control_node03_address:
126 value_template: <<node_control_ip>>
127 openstack_compute:
128 expression: <<node_hostname>>__startswith__cmp
129 node_class:
130 value_template:
131 - cluster.<<node_cluster>>.openstack.compute
132 node_param:
133 tenant_address:
134 value_template: <<node_tenant_ip>>
135 external_address:
136 value_template: <<node_external_ip>>
137 openstack_gateway:
138 expression: <<node_hostname>>__startswith__gtw
139 node_class:
140 value_template:
141 - cluster.<<node_cluster>>.openstack.gateway
142 node_param:
143 tenant_address:
144 value_template: <<node_tenant_ip>>
145 external_address:
146 value_template: <<node_external_ip>>
147 cluster_param:
148 openstack_gateway_node01_address:
149 value_template: <<node_control_ip>>
150 openstack_dashboard:
151 expression: <<node_hostname>>__startswith__prx
152 node_class:
153 value_template:
154 - cluster.<<node_cluster>>.openstack.dashboard
155 - cluster.<<node_cluster>>.openstack.proxy
156 cluster_param:
157 openstack_proxy_node01_address:
158 value_template: <<node_control_ip>>
159 openstack_share:
160 expression: <<node_hostname>>__startswith__share
161 node_class:
162 value_template:
163 - cluster.<<node_cluster>>.openstack.share
164 cluster_param:
165 openstack_share_node01_address:
166 value_template: <<node_control_ip>>
167 openstack_share_node01_share_address:
168 value_template: <<node_tenant_ip>>
169 openstack_telemetry01:
170 expression: <<node_hostname>>__equals__mdb01
171 cluster_param:
172 openstack_telemetry_node01_address:
173 value_template: <<node_control_ip>>
174 openstack_telemetry02:
175 expression: <<node_hostname>>__equals__mdb02
176 cluster_param:
177 openstack_telemetry_node02_address:
178 value_template: <<node_control_ip>>
179 openstack_telemetry03:
180 expression: <<node_hostname>>__equals__mdb03
181 cluster_param:
182 openstack_telemetry_node03_address:
183 value_template: <<node_control_ip>>
184 node:
185 openstack_control_node01:
186 classes:
187 - service.galera.master.cluster
188 - service.dogtag.server.cluster.master
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +0300189 - cluster.virtual-offline-ssl.infra.backup.client_mysql
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300190 params:
191 mysql_cluster_role: master
192 linux_system_codename: xenial
193 openstack_control_node02:
194 classes:
195 - service.galera.slave.cluster
196 - service.dogtag.server.cluster.slave
197 params:
198 mysql_cluster_role: slave
199 linux_system_codename: xenial
200 openstack_control_node03:
201 classes:
202 - service.galera.slave.cluster
203 - service.dogtag.server.cluster.slave
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +0300204 - cluster.virtual-offline-ssl.infra.backup.server
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300205 params:
206 mysql_cluster_role: slave
207 linux_system_codename: xenial
208 openstack_compute_node01:
209 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400210 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300211 dpdk0_pci: '"0000:00:05.0"'
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300212 single_address: 172.16.10.105
213 tenant_address: 10.1.0.105
214 external_address: 10.16.0.105
215 openstack_compute_node02:
216 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400217 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300218 dpdk0_pci: '"0000:00:05.0"'
Tatyana Leontovich4f9d1a92018-03-28 15:36:40 +0300219 single_address: 172.16.10.106
220 tenant_address: 10.1.0.106
221 external_address: 10.16.0.106
222 openstack_gateway_node01:
223 params:
224 tenant_address: 10.1.0.110
225 external_address: 10.16.0.110
226 openstack_proxy_node01:
227 classes:
228 - cluster.virtual-offline-ssl.openstack.proxy
229 params:
230 linux_system_codename: xenial
231 openstack_telemetry_node01:
232 params:
233 # create resources only from 1 controller
234 # to prevent race conditions
235 ceilometer_create_gnocchi_resources: true
236 redis_cluster_role: 'master'
237 openstack_telemetry_node02:
238 params:
239 redis_cluster_role: 'slave'
240 openstack_telemetry_node03:
241 params:
242 redis_cluster_role: 'slave'