blob: 38c8e433cf12f84925192e901a7d033b1a7e398e [file] [log] [blame]
Vasyl Saienko91160482018-02-20 17:31:33 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.linux.system.repo.mcp.apt_mirantis.openstack
6- system.openssh.client.lab
Vasyl Saienko91160482018-02-20 17:31:33 +02007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Mykyta Karpin96cc7982018-03-19 12:41:51 +02009- system.salt.master.formula.pkg.manila
Mykyta Karpin912ac972018-03-20 11:29:23 +020010- system.salt.master.formula.pkg.gnocchi
11- system.salt.master.formula.pkg.panko
Vasyl Saienko91160482018-02-20 17:31:33 +020012- system.reclass.storage.salt
13- system.salt.minion.ca.salt_master
Vasyl Saienko91160482018-02-20 17:31:33 +020014- system.sphinx.server.doc.reclass
15- system.keystone.client.single
Vasyl Saienko91160482018-02-20 17:31:33 +020016- system.keystone.client.service.nova21
17- system.keystone.client.service.nova-placement
18- system.keystone.client.service.cinder3
19- system.keystone.client.service.designate
Mykyta Karpin96cc7982018-03-19 12:41:51 +020020- system.keystone.client.service.manila
21- system.keystone.client.service.manila2
Mykyta Karpin912ac972018-03-20 11:29:23 +020022- system.keystone.client.service.aodh
23- system.keystone.client.service.ceilometer
24- system.keystone.client.service.panko
25- system.keystone.client.service.gnocchi
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +020026- system.reclass.storage.system.openstack_dns_cluster
Vasyl Saienko91160482018-02-20 17:31:33 +020027- system.reclass.storage.system.openstack_control_cluster
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +020028- system.reclass.storage.system.openstack_compute_multi
29- system.reclass.storage.system.openstack_gateway_single
30- system.reclass.storage.system.openstack_dashboard_single
Mykyta Karpin912ac972018-03-20 11:29:23 +020031- system.reclass.storage.system.openstack_telemetry_cluster
Vasyl Saienko91160482018-02-20 17:31:33 +020032- cluster.virtual-mcp-pike-dvr-ssl
33parameters:
34 _param:
35 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
36 reclass_data_revision: master
37 salt_master_environment_repository: "https://github.com/tcpcloud"
38 salt_master_environment_revision: master
39 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
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 linux:
45 network:
46 interface:
47 ens4:
48 enabled: true
49 type: eth
50 proto: static
51 address: ${_param:single_address}
52 netmask: 255.255.255.0
Vasyl Saienko91160482018-02-20 17:31:33 +020053 salt:
54 master:
55 reactor:
56 reclass/minion/classify:
57 - salt://reclass/reactor/node_register.sls
58 reclass:
59 storage:
60 class_mapping:
61 common_node:
62 expression: all
63 node_param:
64 single_address:
65 value_template: <<node_control_ip>>
66 linux_system_codename:
67 value_template: <<node_os>>
68 salt_master_host:
69 value_template: <<node_master_ip>>
70 infra_config:
71 expression: <<node_hostname>>__startswith__cfg
72 cluster_param:
73 infra_config_address:
74 value_template: <<node_control_ip>>
75 infra_config_deploy_address:
76 value_template: <<node_deploy_ip>>
77 cluster_domain:
78 value_template: <<node_domain>>
79 openstack_control01:
80 expression: <<node_hostname>>__equals__ctl01
81 cluster_param:
82 openstack_control_node01_address:
83 value_template: <<node_control_ip>>
84 openstack_control02:
85 expression: <<node_hostname>>__equals__ctl02
86 cluster_param:
87 openstack_control_node02_address:
88 value_template: <<node_control_ip>>
89 openstack_control03:
90 expression: <<node_hostname>>__equals__ctl03
91 cluster_param:
92 openstack_control_node03_address:
93 value_template: <<node_control_ip>>
94 openstack_compute:
95 expression: <<node_hostname>>__startswith__cmp
96 node_class:
97 value_template:
98 - cluster.<<node_cluster>>.openstack.compute
99 node_param:
100 tenant_address:
101 value_template: <<node_tenant_ip>>
102 external_address:
103 value_template: <<node_external_ip>>
104 openstack_gateway:
105 expression: <<node_hostname>>__startswith__gtw
106 node_class:
107 value_template:
108 - cluster.<<node_cluster>>.openstack.gateway
109 node_param:
110 tenant_address:
111 value_template: <<node_tenant_ip>>
112 external_address:
113 value_template: <<node_external_ip>>
114 cluster_param:
115 openstack_gateway_node01_address:
116 value_template: <<node_control_ip>>
Vasyl Saienko91160482018-02-20 17:31:33 +0200117 openstack_dashboard:
118 expression: <<node_hostname>>__startswith__prx
119 node_class:
120 value_template:
121 - cluster.<<node_cluster>>.openstack.dashboard
122 - cluster.<<node_cluster>>.openstack.proxy
123 cluster_param:
124 openstack_proxy_node01_address:
125 value_template: <<node_control_ip>>
Mykyta Karpin96cc7982018-03-19 12:41:51 +0200126 openstack_share:
127 expression: <<node_hostname>>__startswith__share
128 node_class:
129 value_template:
130 - cluster.<<node_cluster>>.openstack.share
131 node_param:
132 manila_share_address:
133 value_template: <<node_tenant_ip>>
Mykyta Karpin912ac972018-03-20 11:29:23 +0200134 openstack_telemetry01:
135 expression: <<node_hostname>>__equals__mdb01
136 cluster_param:
137 openstack_telemetry_node01_address:
138 value_template: <<node_control_ip>>
139 openstack_telemetry02:
140 expression: <<node_hostname>>__equals__mdb02
141 cluster_param:
142 openstack_telemetry_node02_address:
143 value_template: <<node_control_ip>>
144 openstack_telemetry03:
145 expression: <<node_hostname>>__equals__mdb03
146 cluster_param:
147 openstack_telemetry_node03_address:
148 value_template: <<node_control_ip>>
Vasyl Saienko91160482018-02-20 17:31:33 +0200149 node:
150 openstack_control_node01:
151 classes:
152 - service.galera.master.cluster
153 params:
154 mysql_cluster_role: master
155 linux_system_codename: xenial
156 openstack_control_node02:
157 classes:
158 - service.galera.slave.cluster
159 params:
160 mysql_cluster_role: slave
161 linux_system_codename: xenial
162 openstack_control_node03:
163 classes:
164 - service.galera.slave.cluster
165 params:
166 mysql_cluster_role: slave
167 linux_system_codename: xenial
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +0200168 openstack_compute_node01:
169 params:
170 single_address: 172.16.10.105
171 tenant_address: 10.1.0.105
172 external_address: 10.16.0.105
173 openstack_compute_node02:
174 params:
175 single_address: 172.16.10.106
176 tenant_address: 10.1.0.106
177 external_address: 10.16.0.106
178 openstack_gateway_node01:
179 params:
180 tenant_address: 10.1.0.110
181 external_address: 10.16.0.110
182 openstack_proxy_node01:
183 classes:
184 - cluster.virtual-mcp-pike-dvr-ssl.openstack.proxy
185 params:
186 linux_system_codename: xenial
Mykyta Karpin912ac972018-03-20 11:29:23 +0200187 openstack_telemetry_node01:
188 params:
189 # create resources only from 1 controller
190 # to prevent race conditions
191 ceilometer_create_gnocchi_resources: true
192 redis_cluster_role: 'master'
193 openstack_telemetry_node02:
194 params:
195 redis_cluster_role: 'slave'
196 openstack_telemetry_node03:
197 params:
198 redis_cluster_role: 'slave'