blob: 50b7893a6f2b82607ba32e7127ea58f598a17918 [file] [log] [blame]
asledzinskiy159d7bf2017-06-12 15:25:21 +03001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
Elena Ezhovaf42731a2017-07-27 17:13:48 +04005- system.linux.system.repo.mcp.openstack
asledzinskiy159d7bf2017-06-12 15:25:21 +03006- system.openssh.client.lab
7- system.salt.master.api
8- system.salt.master.pkg
9- system.reclass.storage.salt
10- system.salt.minion.ca.salt_master
11- system.salt.minion.cert.proxy
12- system.sphinx.server.doc.reclass
13- system.keystone.client.single
14- system.keystone.client.service.ceilometer
15- system.keystone.client.service.nova21
16- system.keystone.client.service.nova-placement
17- system.keystone.client.service.glare
18- system.keystone.client.service.cinder3
19- system.keystone.client.service.designate
20- system.mysql.client.single
21- system.reclass.storage.system.openstack_control_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020022- system.reclass.storage.system.openstack_compute_multi
23- system.reclass.storage.system.openstack_gateway_single
24- system.reclass.storage.system.openstack_dashboard_single
25- system.reclass.storage.system.cicd_control_cluster
asledzinskiy159d7bf2017-06-12 15:25:21 +030026- cluster.virtual-mcp-ocata-cicd.openstack.proxy
27- cluster.virtual-mcp-ocata-cicd.stacklight.proxy
Dennis Dmitrievd81aae92017-07-10 15:52:30 +030028- cluster.virtual-mcp-ocata-cicd.infra
asledzinskiy159d7bf2017-06-12 15:25:21 +030029parameters:
30 _param:
31 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
32 reclass_data_revision: master
33 salt_master_environment_repository: "https://github.com/tcpcloud"
34 salt_master_environment_revision: master
35 reclass_config_master: 192.168.10.100
36 single_address: 172.16.10.100
37 salt_master_host: 127.0.0.1
38 salt_master_base_environment: prd
39 salt_minion_ca_host: ${linux:network:fqdn}
40 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
41 linux:
42 network:
43 interface:
44 ens4:
45 enabled: true
46 type: eth
47 proto: static
48 address: ${_param:single_address}
49 netmask: 255.255.255.0
50 nginx:
51 server:
52 site:
53 nginx_proxy_openstack_web:
54 proxy:
55 host: prx
56 nginx_proxy_openstack_api_heat_cfn:
57 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020058 salt:
59 master:
60 reactor:
61 reclass/minion/classify:
62 - salt://reclass/reactor/node_register.sls
asledzinskiy159d7bf2017-06-12 15:25:21 +030063 reclass:
64 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020065 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>>
122 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>>
131 cicd_control_node01:
132 expression: <<node_hostname>>__equals__cid01
133 cluster_param:
134 cicd_control_node01_address:
135 value_template: <<node_control_ip>>
136 cicd_control_node02:
137 expression: <<node_hostname>>__equals__cid02
138 cluster_param:
139 cicd_control_node02_address:
140 value_template: <<node_control_ip>>
141 cicd_control_node03:
142 expression: <<node_hostname>>__equals__cid03
143 cluster_param:
144 cicd_control_node03_address:
145 value_template: <<node_control_ip>>
asledzinskiy159d7bf2017-06-12 15:25:21 +0300146 node:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200147 cicd_control_node01:
148 name: ${_param:cicd_control_node01_hostname}
149 domain: ${_param:cluster_domain}
150 classes:
Jiri Broulikd3a38672017-08-22 14:15:09 +0200151 - cluster.${_param:cluster_name}.cicd.control.leader
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200152 params:
153 salt_master_host: ${_param:reclass_config_master}
154 linux_system_codename: xenial
155 single_address: ${_param:cicd_control_node01_address}
156 keepalived_vip_priority: 103
157 cicd_control_node02:
158 name: ${_param:cicd_control_node02_hostname}
159 domain: ${_param:cluster_domain}
160 classes:
Jiri Broulik1b604f32017-08-22 18:33:14 +0200161 - cluster.${_param:cluster_name}.cicd.control.manager
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200162 params:
163 salt_master_host: ${_param:reclass_config_master}
164 linux_system_codename: xenial
165 single_address: ${_param:cicd_control_node02_address}
166 keepalived_vip_priority: 102
167 docker_swarm_role: worker
168 cicd_control_node03:
169 name: ${_param:cicd_control_node03_hostname}
170 domain: ${_param:cluster_domain}
171 classes:
Jiri Broulik1b604f32017-08-22 18:33:14 +0200172 - cluster.${_param:cluster_name}.cicd.control.manager
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200173 params:
174 salt_master_host: ${_param:reclass_config_master}
175 linux_system_codename: xenial
176 single_address: ${_param:cicd_control_node03_address}
177 keepalived_vip_priority: 101
178 docker_swarm_role: worker
asledzinskiy159d7bf2017-06-12 15:25:21 +0300179 openstack_control_node01:
180 classes:
181 - service.galera.master.cluster
182 params:
183 mysql_cluster_role: master
184 linux_system_codename: xenial
185 openstack_control_node02:
186 classes:
187 - service.galera.slave.cluster
188 params:
189 mysql_cluster_role: slave
190 linux_system_codename: xenial
191 openstack_control_node03:
192 classes:
193 - service.galera.slave.cluster
194 params:
195 mysql_cluster_role: slave
196 linux_system_codename: xenial
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200197 openstack_compute_node01:
198 params:
199 single_address: 172.16.10.105
200 tenant_address: 10.1.0.105
201 external_address: 10.16.0.105
202 openstack_compute_node02:
203 params:
204 single_address: 172.16.10.106
205 tenant_address: 10.1.0.106
Jiri Broulikd3a38672017-08-22 14:15:09 +0200206 external_address: 10.16.0.106
207 openstack_gateway_node01:
208 params:
209 tenant_address: 10.1.0.110
210 external_address: 10.16.0.110
211 openstack_proxy_node01:
212 classes:
213 - cluster.virtual-mcp-ocata-cicd.openstack.proxy
214 params:
Jiri Broulik1b604f32017-08-22 18:33:14 +0200215 linux_system_codename: xenial