blob: 0563d542ab644ea481e65cc6304abaf9d9cf10b8 [file] [log] [blame]
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02005- system.linux.system.repo.mcp.apt_mirantis.openstack
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +01006#- system.openssh.client.lab
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +02007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Vasyl Saienko7a031d02018-03-14 15:35:13 +02009- system.salt.master.formula.pkg.manila
Mykyta Karpin8abcce32018-03-15 13:43:28 +020010- system.salt.master.formula.pkg.gnocchi
11- system.salt.master.formula.pkg.panko
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020012- system.reclass.storage.salt
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020013- system.salt.minion.ca.salt_master
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020014- system.sphinx.server.doc.reclass
15- system.keystone.client.single
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020016- system.keystone.client.service.nova21
17- system.keystone.client.service.nova-placement
18- system.keystone.client.service.glare
19- system.keystone.client.service.cinder3
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020020- system.keystone.client.service.designate
Vasyl Saienko7a031d02018-03-14 15:35:13 +020021- system.keystone.client.service.manila
22- system.keystone.client.service.manila2
Mykyta Karpin8abcce32018-03-15 13:43:28 +020023- system.keystone.client.service.aodh
24- system.keystone.client.service.ceilometer
25- system.keystone.client.service.panko
26- system.keystone.client.service.gnocchi
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020027- 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
Mykyta Karpin8abcce32018-03-15 13:43:28 +020031- system.reclass.storage.system.openstack_telemetry_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010032- cluster.virtual-mcp-pike-ovs.infra.backup.client_common
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020033- cluster.virtual-mcp-pike-ovs
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020034parameters:
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
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020040 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}
Tatyana Leontovich15b38e82018-01-11 13:06:38 +020045 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020046 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
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020055 salt:
56 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010057 backup: true
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020058 reactor:
59 reclass/minion/classify:
60 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010061 minion:
62 backup: true
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +020063 reclass:
64 storage:
65 class_mapping:
66 common_node:
67 expression: all
68 node_param:
69 single_address:
70 value_template: <<node_control_ip>>
71 linux_system_codename:
72 value_template: <<node_os>>
73 salt_master_host:
74 value_template: <<node_master_ip>>
75 infra_config:
76 expression: <<node_hostname>>__startswith__cfg
77 cluster_param:
78 infra_config_address:
79 value_template: <<node_control_ip>>
80 infra_config_deploy_address:
81 value_template: <<node_deploy_ip>>
82 cluster_domain:
83 value_template: <<node_domain>>
84 openstack_control01:
85 expression: <<node_hostname>>__equals__ctl01
86 cluster_param:
87 openstack_control_node01_address:
88 value_template: <<node_control_ip>>
89 openstack_control02:
90 expression: <<node_hostname>>__equals__ctl02
91 cluster_param:
92 openstack_control_node02_address:
93 value_template: <<node_control_ip>>
94 openstack_control03:
95 expression: <<node_hostname>>__equals__ctl03
96 cluster_param:
97 openstack_control_node03_address:
98 value_template: <<node_control_ip>>
99 openstack_compute:
100 expression: <<node_hostname>>__startswith__cmp
101 node_class:
102 value_template:
103 - cluster.<<node_cluster>>.openstack.compute
104 node_param:
105 tenant_address:
106 value_template: <<node_tenant_ip>>
107 external_address:
108 value_template: <<node_external_ip>>
109 openstack_gateway:
110 expression: <<node_hostname>>__startswith__gtw
111 node_class:
112 value_template:
113 - cluster.<<node_cluster>>.openstack.gateway
114 node_param:
115 tenant_address:
116 value_template: <<node_tenant_ip>>
117 external_address:
118 value_template: <<node_external_ip>>
119 cluster_param:
120 openstack_gateway_node01_address:
121 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200122 openstack_dashboard:
123 expression: <<node_hostname>>__startswith__prx
124 node_class:
125 value_template:
126 - cluster.<<node_cluster>>.openstack.dashboard
127 - cluster.<<node_cluster>>.openstack.proxy
128 cluster_param:
129 openstack_proxy_node01_address:
130 value_template: <<node_control_ip>>
Vasyl Saienko7a031d02018-03-14 15:35:13 +0200131 openstack_share:
132 expression: <<node_hostname>>__startswith__share
133 node_class:
134 value_template:
135 - cluster.<<node_cluster>>.openstack.share
136 node_param:
137 manila_share_address:
138 value_template: <<node_tenant_ip>>
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200139 openstack_telemetry01:
140 expression: <<node_hostname>>__equals__mdb01
141 cluster_param:
142 openstack_telemetry_node01_address:
143 value_template: <<node_control_ip>>
144 openstack_telemetry02:
145 expression: <<node_hostname>>__equals__mdb02
146 cluster_param:
147 openstack_telemetry_node02_address:
148 value_template: <<node_control_ip>>
149 openstack_telemetry03:
150 expression: <<node_hostname>>__equals__mdb03
151 cluster_param:
152 openstack_telemetry_node03_address:
153 value_template: <<node_control_ip>>
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200154 node:
155 openstack_control_node01:
156 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100157 - cluster.virtual-mcp-pike-ovs.infra.backup.client_mysql
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200158 - service.galera.master.cluster
159 params:
160 mysql_cluster_role: master
161 linux_system_codename: xenial
162 openstack_control_node02:
163 classes:
164 - service.galera.slave.cluster
165 params:
166 mysql_cluster_role: slave
167 linux_system_codename: xenial
168 openstack_control_node03:
169 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100170 - cluster.virtual-mcp-pike-ovs.infra.backup.server
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200171 - service.galera.slave.cluster
172 params:
173 mysql_cluster_role: slave
174 linux_system_codename: xenial
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200175 openstack_compute_node01:
176 params:
177 single_address: 172.16.10.105
178 tenant_address: 10.1.0.105
179 external_address: 10.16.0.105
180 openstack_compute_node02:
181 params:
182 single_address: 172.16.10.106
183 tenant_address: 10.1.0.106
184 external_address: 10.16.0.106
185 openstack_gateway_node01:
186 params:
187 tenant_address: 10.1.0.110
188 external_address: 10.16.0.110
189 openstack_proxy_node01:
190 classes:
Tatyana Leontovich15b38e82018-01-11 13:06:38 +0200191 - cluster.virtual-mcp-pike-ovs.openstack.proxy
Tatyana Leontovich8ac23e52017-12-08 20:06:46 +0200192 params:
193 linux_system_codename: xenial
Mykyta Karpin8abcce32018-03-15 13:43:28 +0200194 openstack_telemetry_node01:
195 params:
196 # create resources only from 1 controller
197 # to prevent race conditions
198 ceilometer_create_gnocchi_resources: true
199 redis_cluster_role: 'master'
200 openstack_telemetry_node02:
201 params:
202 redis_cluster_role: 'slave'
203 openstack_telemetry_node03:
204 params:
205 redis_cluster_role: 'slave'