blob: d1b2b8810ebc782604b4f227d37a2cd48d56b257 [file] [log] [blame]
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02001classes:
2- service.git.client
3- system.linux.system.single
Tatyana Leontovichc07941e2018-03-20 16:04:15 +02004- system.linux.system.single.debian
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02005- system.linux.system.repo.mcp.salt
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02006- system.linux.system.repo.mcp.apt_mirantis.openstack
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +01007#- system.openssh.client.lab
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02008- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02009- system.salt.master.api
Vasyl Saienko7a031d02018-03-14 15:35:13 +020010- system.salt.master.formula.pkg.manila
Mykyta Karpin8abcce32018-03-15 13:43:28 +020011- system.salt.master.formula.pkg.gnocchi
12- system.salt.master.formula.pkg.panko
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020013- system.reclass.storage.salt
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020014- system.salt.minion.ca.salt_master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020015- system.sphinx.server.doc.reclass
16- system.keystone.client.single
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020017- system.keystone.client.service.nova21
18- system.keystone.client.service.nova-placement
19- system.keystone.client.service.glare
20- system.keystone.client.service.cinder3
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020021- system.keystone.client.service.designate
Vasyl Saienko7a031d02018-03-14 15:35:13 +020022- system.keystone.client.service.manila
23- system.keystone.client.service.manila2
Mykyta Karpin8abcce32018-03-15 13:43:28 +020024- system.keystone.client.service.aodh
25- system.keystone.client.service.ceilometer
26- system.keystone.client.service.panko
27- system.keystone.client.service.gnocchi
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020028- system.reclass.storage.system.openstack_control_cluster
29- system.reclass.storage.system.openstack_compute_multi
30- system.reclass.storage.system.openstack_gateway_single
31- system.reclass.storage.system.openstack_dashboard_single
Vasyl Saienko5f39a522018-03-23 15:56:55 +020032- system.reclass.storage.system.openstack_share_single
Mykyta Karpin8abcce32018-03-15 13:43:28 +020033- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010034- cluster.virtual-mcp-pike-ovs.infra.backup.client_common
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020035- cluster.virtual-mcp-pike-ovs
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020036parameters:
37 _param:
38 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
39 reclass_data_revision: master
40 salt_master_environment_repository: "https://github.com/tcpcloud"
41 salt_master_environment_revision: master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020042 reclass_config_master: 192.168.10.90
43 single_address: 172.16.10.100
44 salt_master_host: 127.0.0.1
45 salt_master_base_environment: prd
46 salt_minion_ca_host: ${linux:network:fqdn}
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020047 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020048 linux:
49 network:
50 interface:
51 ens4:
52 enabled: true
53 type: eth
54 proto: static
55 address: ${_param:single_address}
56 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020057 salt:
58 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010059 backup: true
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020060 reactor:
61 reclass/minion/classify:
62 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010063 minion:
64 backup: true
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020065 reclass:
66 storage:
67 class_mapping:
68 common_node:
69 expression: all
70 node_param:
71 single_address:
72 value_template: <<node_control_ip>>
73 linux_system_codename:
74 value_template: <<node_os>>
75 salt_master_host:
76 value_template: <<node_master_ip>>
77 infra_config:
78 expression: <<node_hostname>>__startswith__cfg
79 cluster_param:
80 infra_config_address:
81 value_template: <<node_control_ip>>
82 infra_config_deploy_address:
83 value_template: <<node_deploy_ip>>
84 cluster_domain:
85 value_template: <<node_domain>>
86 openstack_control01:
87 expression: <<node_hostname>>__equals__ctl01
88 cluster_param:
89 openstack_control_node01_address:
90 value_template: <<node_control_ip>>
91 openstack_control02:
92 expression: <<node_hostname>>__equals__ctl02
93 cluster_param:
94 openstack_control_node02_address:
95 value_template: <<node_control_ip>>
96 openstack_control03:
97 expression: <<node_hostname>>__equals__ctl03
98 cluster_param:
99 openstack_control_node03_address:
100 value_template: <<node_control_ip>>
101 openstack_compute:
102 expression: <<node_hostname>>__startswith__cmp
103 node_class:
104 value_template:
105 - cluster.<<node_cluster>>.openstack.compute
106 node_param:
107 tenant_address:
108 value_template: <<node_tenant_ip>>
109 external_address:
110 value_template: <<node_external_ip>>
111 openstack_gateway:
112 expression: <<node_hostname>>__startswith__gtw
113 node_class:
114 value_template:
115 - cluster.<<node_cluster>>.openstack.gateway
116 node_param:
117 tenant_address:
118 value_template: <<node_tenant_ip>>
119 external_address:
120 value_template: <<node_external_ip>>
121 cluster_param:
122 openstack_gateway_node01_address:
123 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200124 openstack_dashboard:
125 expression: <<node_hostname>>__startswith__prx
126 node_class:
127 value_template:
128 - cluster.<<node_cluster>>.openstack.dashboard
129 - cluster.<<node_cluster>>.openstack.proxy
130 cluster_param:
131 openstack_proxy_node01_address:
132 value_template: <<node_control_ip>>
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200133 openstack_share:
134 expression: <<node_hostname>>__startswith__share
135 node_class:
136 value_template:
137 - cluster.<<node_cluster>>.openstack.share
Vasyl Saienko5f39a522018-03-23 15:56:55 +0200138 cluster_param:
139 openstack_share_node01_address:
140 value_template: <<node_control_ip>>
141 openstack_share_node01_share_address:
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200142 value_template: <<node_tenant_ip>>
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200143 openstack_telemetry01:
144 expression: <<node_hostname>>__equals__mdb01
145 cluster_param:
146 openstack_telemetry_node01_address:
147 value_template: <<node_control_ip>>
148 openstack_telemetry02:
149 expression: <<node_hostname>>__equals__mdb02
150 cluster_param:
151 openstack_telemetry_node02_address:
152 value_template: <<node_control_ip>>
153 openstack_telemetry03:
154 expression: <<node_hostname>>__equals__mdb03
155 cluster_param:
156 openstack_telemetry_node03_address:
157 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200158 node:
159 openstack_control_node01:
160 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100161 - cluster.virtual-mcp-pike-ovs.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200162 - service.galera.master.cluster
163 params:
164 mysql_cluster_role: master
165 linux_system_codename: xenial
166 openstack_control_node02:
167 classes:
168 - service.galera.slave.cluster
169 params:
170 mysql_cluster_role: slave
171 linux_system_codename: xenial
172 openstack_control_node03:
173 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100174 - cluster.virtual-mcp-pike-ovs.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200175 - service.galera.slave.cluster
176 params:
177 mysql_cluster_role: slave
178 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200179 openstack_compute_node01:
180 params:
181 single_address: 172.16.10.105
182 tenant_address: 10.1.0.105
183 external_address: 10.16.0.105
184 openstack_compute_node02:
185 params:
186 single_address: 172.16.10.106
187 tenant_address: 10.1.0.106
188 external_address: 10.16.0.106
189 openstack_gateway_node01:
190 params:
191 tenant_address: 10.1.0.110
192 external_address: 10.16.0.110
193 openstack_proxy_node01:
194 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200195 - cluster.virtual-mcp-pike-ovs.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200196 params:
197 linux_system_codename: xenial
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200198 openstack_telemetry_node01:
199 params:
200 # create resources only from 1 controller
201 # to prevent race conditions
202 ceilometer_create_gnocchi_resources: true
203 redis_cluster_role: 'master'
204 openstack_telemetry_node02:
205 params:
206 redis_cluster_role: 'slave'
207 openstack_telemetry_node03:
208 params:
209 redis_cluster_role: 'slave'