blob: ba4fe44a2a4601d321098bbc206b33aad91a9d93 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
Martin Polreich1ee2e092017-08-10 16:06:57 +02003- system.docker.client
4- system.docker.host
Ales Komarekc12dd412017-06-27 16:24:42 +02005- system.linux.system.single
6- system.linux.system.repo.mcp.salt
Richard Felklb352e4f2017-08-25 13:33:42 +02007- system.linux.system.repo.mcp.openstack
Ales Komarekc12dd412017-06-27 16:24:42 +02008- system.openssh.client.lab
9- system.salt.master.api
10- system.salt.master.pkg
11- system.reclass.storage.salt
12- system.salt.minion.ca.salt_master
13- system.salt.minion.cert.proxy
14- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020015- system.keystone.client.core
16- system.keystone.client.service.aodh
17- system.keystone.client.service.ceilometer
Ales Komarekc12dd412017-06-27 16:24:42 +020018- system.keystone.client.service.designate
Petr Jediný3114a392017-08-02 15:21:09 +020019- system.keystone.client.service.cinder
20- system.keystone.client.service.cinder2
21- system.keystone.client.service.cinder3
22- system.keystone.client.service.glance
23- system.keystone.client.service.glare
24- system.keystone.client.service.heat
25- system.keystone.client.service.heat-cfn
26- system.keystone.client.service.keystone
27- system.keystone.client.service.neutron
28- system.keystone.client.service.nova-ec2
29- system.keystone.client.service.nova21
30- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000031- system.mysql.client
32- system.mysql.client.database.cinder
33- system.mysql.client.database.glance
34- system.mysql.client.database.heat
35- system.mysql.client.database.keystone
36- system.mysql.client.database.nova
37- system.mysql.client.database.nova_api
38- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020039- system.reclass.storage.system.openstack_control_cluster
40- system.reclass.storage.system.opencontrail_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020041- cluster.sl-os-contrail.openstack.proxy
42- cluster.sl-os-contrail.stacklight.proxy
43- cluster.sl-os-contrail.openstack.dashboard
44- cluster.sl-os-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020045parameters:
46 _param:
47 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
48 reclass_data_revision: master
Adam Tengler81526202017-07-11 13:03:40 +000049 reclass_config_master: ${_param:infra_config_deploy_address}
50 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020051 salt_master_host: 127.0.0.1
52 salt_master_base_environment: prd
53 salt_minion_ca_host: ${linux:network:fqdn}
54 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
55 linux:
56 network:
57 interface:
58 ens4:
59 enabled: true
60 type: eth
61 proto: static
62 address: ${_param:single_address}
63 netmask: 255.255.255.0
64 nginx:
65 server:
66 site:
67 nginx_proxy_openstack_web:
68 proxy:
Richard Felklb352e4f2017-08-25 13:33:42 +020069 host: cfg
Ales Komarekc12dd412017-06-27 16:24:42 +020070 nginx_proxy_openstack_api_heat_cfn:
71 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000072 salt:
73 master:
74 reactor:
75 reclass/minion/classify:
76 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020077 reclass:
78 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000079 class_mapping:
80 common_node:
81 expression: all
82 node_param:
83 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000084 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000085 linux_system_codename:
86 value_template: <<node_os>>
87 salt_master_host:
88 value_template: <<node_master_ip>>
89 infra_config:
90 expression: <<node_hostname>>__startswith__cfg
91 cluster_param:
92 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000093 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000094 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000095 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000096 cluster_domain:
97 value_template: <<node_domain>>
98 openstack_control01:
99 expression: <<node_hostname>>__equals__ctl01
100 cluster_param:
101 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000102 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000103 openstack_control02:
104 expression: <<node_hostname>>__equals__ctl02
105 cluster_param:
106 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000107 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000108 openstack_control03:
109 expression: <<node_hostname>>__equals__ctl03
110 cluster_param:
111 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000112 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000113 opencontrail_control01:
114 expression: <<node_hostname>>__equals__ntw01
115 cluster_param:
116 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000117 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000118 opencontrail_control02:
119 expression: <<node_hostname>>__equals__ntw02
120 cluster_param:
121 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000122 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000123 opencontrail_control03:
124 expression: <<node_hostname>>__equals__ntw03
125 cluster_param:
126 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000127 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000128 openstack_compute:
129 expression: <<node_hostname>>__startswith__cmp
130 node_class:
131 value_template:
132 - cluster.<<node_cluster>>.openstack.compute
133 node_param:
134 tenant_address:
135 value_template: <<node_tenant_ip>>
136 external_address:
137 value_template: <<node_external_ip>>
138 stacklight_monitor01:
139 expression: <<node_hostname>>__equals__mon01
140 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000141 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000142 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000143 stacklight_monitor02:
144 expression: <<node_hostname>>__equals__mon02
145 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000146 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000147 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000148 stacklight_monitor03:
149 expression: <<node_hostname>>__equals__mon03
150 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000151 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000152 value_template: <<node_control_ip>>
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200153 node:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200154 prx_node:
155 name: ${_param:openstack_proxy_node01_hostname}
156 domain: ${_param:cluster_domain}
157 classes:
158 - cluster.${_param:cluster_name}.stacklight.proxy
159 params:
160 salt_master_host: ${_param:infra_config_deploy_address}
161 linux_system_codename: xenial
162 single_address: ${_param:openstack_proxy_node01_address}
Adam Tengler106a9b72017-09-27 14:21:30 +0200163 stacklight_server_node01:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200164 name: ${_param:stacklight_monitor_node01_hostname}
165 domain: ${_param:cluster_domain}
166 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200167 - system.docker.swarm.master
168 - cluster.${_param:cluster_name}.stacklight.client
169 - cluster.${_param:cluster_name}.stacklight.server
170 params:
171 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200172 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200173 single_address: ${_param:stacklight_monitor_node01_address}
174 keepalived_vip_priority: 100
Adam Tengler106a9b72017-09-27 14:21:30 +0200175 stacklight_server_node02:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200176 name: ${_param:stacklight_monitor_node02_hostname}
177 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200178 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200179 - system.docker.swarm.manager
180 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200181 params:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200182 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200183 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200184 single_address: ${_param:stacklight_monitor_node02_address}
185 keepalived_vip_priority: 101
Adam Tengler106a9b72017-09-27 14:21:30 +0200186 stacklight_server_node03:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200187 name: ${_param:stacklight_monitor_node03_hostname}
188 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200189 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200190 - system.docker.swarm.manager
191 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200192 params:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200193 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200194 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200195 single_address: ${_param:stacklight_monitor_node03_address}
196 keepalived_vip_priority: 102
Martin Polreich2af50952017-08-16 12:08:30 +0200197 opencontrail_control_node01:
198 params:
199 rabbitmq_cluster_role: master
200 opencontrail_control_node02:
201 params:
202 rabbitmq_cluster_role: slave
203 opencontrail_control_node03:
204 params:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200205 rabbitmq_cluster_role: slave
206 openstack_control_node01:
207 classes:
208 - service.galera.master.cluster
209 params:
210 linux_system_codename: xenial
211 mysql_cluster_role: master
212 openstack_control_node02:
213 classes:
214 - service.galera.slave.cluster
215 params:
216 linux_system_codename: xenial
217 mysql_cluster_role: slave
218 openstack_control_node03:
219 classes:
220 - service.galera.slave.cluster
221 params:
222 linux_system_codename: xenial
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200223 mysql_cluster_role: slave