blob: 6f58513b276914b10d46af953de4a8ff51143619 [file] [log] [blame]
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +00001classes:
2- service.git.client
3- system.linux.system.single
Tatyana Leontovichc07941e2018-03-20 16:04:15 +02004- system.linux.system.single.debian
azvyagintsev98cba952018-07-13 12:40:53 +03005- system.linux.system.repo.mcp.apt_mirantis.saltstack
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +00006- system.linux.system.repo_local.mcp.apt_mirantis.openstack
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +01007#- system.openssh.client.lab
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +00008- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02009- system.salt.master.api
Tatyana Leontovicha863ef32018-07-27 19:09:34 +030010- system.salt.master.formula.pkg.gnocchi
11- system.salt.master.formula.pkg.panko
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000012- system.reclass.storage.salt
13- system.salt.minion.ca.salt_master
14- system.salt.minion.cert.proxy
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000015- system.keystone.client.single
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000016- system.keystone.client.service.nova21
17- system.keystone.client.service.nova-placement
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000018- system.keystone.client.service.cinder3
19- system.keystone.client.service.designate
Tatyana Leontovicha863ef32018-07-27 19:09:34 +030020- system.keystone.client.service.aodh
21- system.keystone.client.service.ceilometer
22- system.keystone.client.service.panko
23- system.keystone.client.service.gnocchi
24- system.gnocchi.client
25- system.gnocchi.client.v1.archive_policy.default
26- system.reclass.storage.system.openstack_dns_cluster
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000027- system.reclass.storage.system.openstack_control_cluster
28- system.reclass.storage.system.openstack_compute_multi
29- system.reclass.storage.system.openstack_gateway_single
30- system.reclass.storage.system.openstack_dashboard_single
Tatyana Leontovicha863ef32018-07-27 19:09:34 +030031- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010032- cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_common
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000033- cluster.virtual-offline-pike-ovs-dpdk
34parameters:
35 _param:
36 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
37 reclass_data_revision: master
38 salt_master_environment_repository: "https://github.com/tcpcloud"
39 salt_master_environment_revision: master
40 reclass_config_master: 192.168.10.90
41 single_address: 172.16.10.100
42 salt_master_host: 127.0.0.1
43 salt_master_base_environment: prd
44 salt_minion_ca_host: ${linux:network:fqdn}
45 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
46 linux:
47 network:
48 interface:
49 ens4:
50 enabled: true
51 type: eth
52 proto: static
53 address: ${_param:single_address}
54 netmask: 255.255.255.0
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000055 salt:
56 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010057 backup: true
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030058 initial_data:
59 engine: backupninja
60 source: ctl03
61 home_dir: /srv/volumes/backup/backupninja
62 host: cfg01.virtual-offline-pike-ovs-dpdk
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000063 reactor:
64 reclass/minion/classify:
65 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010066 minion:
67 backup: true
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030068 initial_data:
69 engine: backupninja
70 source: ctl03
71 home_dir: /srv/volumes/backup/backupninja
72 host: cfg01.virtual-offline-pike-ovs-dpdk
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000073 reclass:
74 storage:
75 class_mapping:
76 common_node:
77 expression: all
78 node_param:
79 single_address:
80 value_template: <<node_control_ip>>
81 linux_system_codename:
82 value_template: <<node_os>>
83 salt_master_host:
84 value_template: <<node_master_ip>>
85 infra_config:
86 expression: <<node_hostname>>__startswith__cfg
87 cluster_param:
88 infra_config_address:
89 value_template: <<node_control_ip>>
90 infra_config_deploy_address:
91 value_template: <<node_deploy_ip>>
92 cluster_domain:
93 value_template: <<node_domain>>
94 openstack_control01:
95 expression: <<node_hostname>>__equals__ctl01
96 cluster_param:
97 openstack_control_node01_address:
98 value_template: <<node_control_ip>>
99 openstack_control02:
100 expression: <<node_hostname>>__equals__ctl02
101 cluster_param:
102 openstack_control_node02_address:
103 value_template: <<node_control_ip>>
104 openstack_control03:
105 expression: <<node_hostname>>__equals__ctl03
106 cluster_param:
107 openstack_control_node03_address:
108 value_template: <<node_control_ip>>
109 openstack_compute:
110 expression: <<node_hostname>>__startswith__cmp
111 node_class:
112 value_template:
113 - cluster.<<node_cluster>>.openstack.compute
114 node_param:
115 tenant_address:
116 value_template: <<node_tenant_ip>>
117 external_address:
118 value_template: <<node_external_ip>>
119 openstack_gateway:
120 expression: <<node_hostname>>__startswith__gtw
121 node_class:
122 value_template:
123 - cluster.<<node_cluster>>.openstack.gateway
124 node_param:
125 tenant_address:
126 value_template: <<node_tenant_ip>>
127 external_address:
128 value_template: <<node_external_ip>>
129 cluster_param:
130 openstack_gateway_node01_address:
131 value_template: <<node_control_ip>>
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300132 openstack_dns01:
133 expression: <<node_hostname>>__equals__dns01
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000134 cluster_param:
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300135 openstack_dns_node01_address:
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000136 value_template: <<node_control_ip>>
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300137 openstack_dns02:
138 expression: <<node_hostname>>__equals__dns02
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000139 cluster_param:
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300140 openstack_dns_node02_address:
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000141 value_template: <<node_control_ip>>
142 openstack_dashboard:
143 expression: <<node_hostname>>__startswith__prx
144 node_class:
145 value_template:
146 - cluster.<<node_cluster>>.openstack.dashboard
147 - cluster.<<node_cluster>>.openstack.proxy
148 cluster_param:
149 openstack_proxy_node01_address:
150 value_template: <<node_control_ip>>
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300151 openstack_telemetry01:
152 expression: <<node_hostname>>__equals__mdb01
153 cluster_param:
154 openstack_telemetry_node01_address:
155 value_template: <<node_control_ip>>
156 openstack_telemetry02:
157 expression: <<node_hostname>>__equals__mdb02
158 cluster_param:
159 openstack_telemetry_node02_address:
160 value_template: <<node_control_ip>>
161 openstack_telemetry03:
162 expression: <<node_hostname>>__equals__mdb03
163 cluster_param:
164 openstack_telemetry_node03_address:
165 value_template: <<node_control_ip>>
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000166 node:
167 openstack_control_node01:
168 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100169 - cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_mysql
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000170 - service.galera.master.cluster
171 params:
172 mysql_cluster_role: master
173 linux_system_codename: xenial
174 openstack_control_node02:
175 classes:
176 - service.galera.slave.cluster
177 params:
178 mysql_cluster_role: slave
179 linux_system_codename: xenial
180 openstack_control_node03:
181 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100182 - cluster.virtual-offline-pike-ovs-dpdk.infra.backup.server
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000183 - service.galera.slave.cluster
184 params:
185 mysql_cluster_role: slave
186 linux_system_codename: xenial
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000187 openstack_compute_node01:
188 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400189 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300190 dpdk0_pci: '"0000:00:05.0"'
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000191 single_address: 172.16.10.105
192 tenant_address: 10.1.0.105
193 external_address: 10.16.0.105
194 openstack_compute_node02:
195 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400196 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300197 dpdk0_pci: '"0000:00:05.0"'
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000198 single_address: 172.16.10.106
199 tenant_address: 10.1.0.106
200 external_address: 10.16.0.106
201 openstack_gateway_node01:
202 params:
203 tenant_address: 10.1.0.110
204 external_address: 10.16.0.110
205 openstack_proxy_node01:
206 classes:
207 - cluster.virtual-offline-pike-ovs-dpdk.openstack.proxy
208 params:
209 linux_system_codename: xenial
Tatyana Leontovicha863ef32018-07-27 19:09:34 +0300210 openstack_telemetry_node01:
211 params:
212 # create resources only from 1 controller
213 # to prevent race conditions
214 ceilometer_create_gnocchi_resources: true
215 redis_cluster_role: 'master'
216 openstack_telemetry_node02:
217 params:
218 redis_cluster_role: 'slave'
219 openstack_telemetry_node03:
220 params:
221 redis_cluster_role: 'slave'