blob: 0cb7cf054c552c885e2f50a3ccae370839ecf26b [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
Mykyta Karpin8abcce32018-03-15 13:43:28 +020032- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010033- cluster.virtual-mcp-pike-ovs.infra.backup.client_common
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020034- cluster.virtual-mcp-pike-ovs
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020035parameters:
36 _param:
37 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
38 reclass_data_revision: master
39 salt_master_environment_repository: "https://github.com/tcpcloud"
40 salt_master_environment_revision: master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020041 reclass_config_master: 192.168.10.90
42 single_address: 172.16.10.100
43 salt_master_host: 127.0.0.1
44 salt_master_base_environment: prd
45 salt_minion_ca_host: ${linux:network:fqdn}
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020046 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020047 linux:
48 network:
49 interface:
50 ens4:
51 enabled: true
52 type: eth
53 proto: static
54 address: ${_param:single_address}
55 netmask: 255.255.255.0
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020056 salt:
57 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010058 backup: true
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020059 reactor:
60 reclass/minion/classify:
61 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010062 minion:
63 backup: true
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020064 reclass:
65 storage:
66 class_mapping:
67 common_node:
68 expression: all
69 node_param:
70 single_address:
71 value_template: <<node_control_ip>>
72 linux_system_codename:
73 value_template: <<node_os>>
74 salt_master_host:
75 value_template: <<node_master_ip>>
76 infra_config:
77 expression: <<node_hostname>>__startswith__cfg
78 cluster_param:
79 infra_config_address:
80 value_template: <<node_control_ip>>
81 infra_config_deploy_address:
82 value_template: <<node_deploy_ip>>
83 cluster_domain:
84 value_template: <<node_domain>>
85 openstack_control01:
86 expression: <<node_hostname>>__equals__ctl01
87 cluster_param:
88 openstack_control_node01_address:
89 value_template: <<node_control_ip>>
90 openstack_control02:
91 expression: <<node_hostname>>__equals__ctl02
92 cluster_param:
93 openstack_control_node02_address:
94 value_template: <<node_control_ip>>
95 openstack_control03:
96 expression: <<node_hostname>>__equals__ctl03
97 cluster_param:
98 openstack_control_node03_address:
99 value_template: <<node_control_ip>>
100 openstack_compute:
101 expression: <<node_hostname>>__startswith__cmp
102 node_class:
103 value_template:
104 - cluster.<<node_cluster>>.openstack.compute
105 node_param:
106 tenant_address:
107 value_template: <<node_tenant_ip>>
108 external_address:
109 value_template: <<node_external_ip>>
110 openstack_gateway:
111 expression: <<node_hostname>>__startswith__gtw
112 node_class:
113 value_template:
114 - cluster.<<node_cluster>>.openstack.gateway
115 node_param:
116 tenant_address:
117 value_template: <<node_tenant_ip>>
118 external_address:
119 value_template: <<node_external_ip>>
120 cluster_param:
121 openstack_gateway_node01_address:
122 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200123 openstack_dashboard:
124 expression: <<node_hostname>>__startswith__prx
125 node_class:
126 value_template:
127 - cluster.<<node_cluster>>.openstack.dashboard
128 - cluster.<<node_cluster>>.openstack.proxy
129 cluster_param:
130 openstack_proxy_node01_address:
131 value_template: <<node_control_ip>>
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200132 openstack_share:
133 expression: <<node_hostname>>__startswith__share
134 node_class:
135 value_template:
136 - cluster.<<node_cluster>>.openstack.share
137 node_param:
138 manila_share_address:
139 value_template: <<node_tenant_ip>>
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200140 openstack_telemetry01:
141 expression: <<node_hostname>>__equals__mdb01
142 cluster_param:
143 openstack_telemetry_node01_address:
144 value_template: <<node_control_ip>>
145 openstack_telemetry02:
146 expression: <<node_hostname>>__equals__mdb02
147 cluster_param:
148 openstack_telemetry_node02_address:
149 value_template: <<node_control_ip>>
150 openstack_telemetry03:
151 expression: <<node_hostname>>__equals__mdb03
152 cluster_param:
153 openstack_telemetry_node03_address:
154 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200155 node:
156 openstack_control_node01:
157 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100158 - cluster.virtual-mcp-pike-ovs.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200159 - service.galera.master.cluster
160 params:
161 mysql_cluster_role: master
162 linux_system_codename: xenial
163 openstack_control_node02:
164 classes:
165 - service.galera.slave.cluster
166 params:
167 mysql_cluster_role: slave
168 linux_system_codename: xenial
169 openstack_control_node03:
170 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100171 - cluster.virtual-mcp-pike-ovs.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200172 - service.galera.slave.cluster
173 params:
174 mysql_cluster_role: slave
175 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200176 openstack_compute_node01:
177 params:
178 single_address: 172.16.10.105
179 tenant_address: 10.1.0.105
180 external_address: 10.16.0.105
181 openstack_compute_node02:
182 params:
183 single_address: 172.16.10.106
184 tenant_address: 10.1.0.106
185 external_address: 10.16.0.106
186 openstack_gateway_node01:
187 params:
188 tenant_address: 10.1.0.110
189 external_address: 10.16.0.110
190 openstack_proxy_node01:
191 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200192 - cluster.virtual-mcp-pike-ovs.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200193 params:
194 linux_system_codename: xenial
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200195 openstack_telemetry_node01:
196 params:
197 # create resources only from 1 controller
198 # to prevent race conditions
199 ceilometer_create_gnocchi_resources: true
200 redis_cluster_role: 'master'
201 openstack_telemetry_node02:
202 params:
203 redis_cluster_role: 'slave'
204 openstack_telemetry_node03:
205 params:
206 redis_cluster_role: 'slave'