blob: d6253935da5bedd2c2c5758ea4d24b5439fef402 [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
7- system.openssh.client.lab
8- system.salt.master.api
9- system.salt.master.pkg
10- system.reclass.storage.salt
11- system.salt.minion.ca.salt_master
12- system.salt.minion.cert.proxy
13- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020014- system.keystone.client.core
15- system.keystone.client.service.aodh
16- system.keystone.client.service.ceilometer
Ales Komarekc12dd412017-06-27 16:24:42 +020017- system.keystone.client.service.designate
Petr Jediný3114a392017-08-02 15:21:09 +020018- system.keystone.client.service.cinder
19- system.keystone.client.service.cinder2
20- system.keystone.client.service.cinder3
21- system.keystone.client.service.glance
22- system.keystone.client.service.glare
23- system.keystone.client.service.heat
24- system.keystone.client.service.heat-cfn
25- system.keystone.client.service.keystone
26- system.keystone.client.service.neutron
27- system.keystone.client.service.nova-ec2
28- system.keystone.client.service.nova21
29- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000030- system.mysql.client
31- system.mysql.client.database.cinder
32- system.mysql.client.database.glance
33- system.mysql.client.database.heat
34- system.mysql.client.database.keystone
35- system.mysql.client.database.nova
36- system.mysql.client.database.nova_api
37- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020038- system.reclass.storage.system.openstack_control_cluster
39- system.reclass.storage.system.opencontrail_control_cluster
Ales Komarekc12dd412017-06-27 16:24:42 +020040- cluster.sl_os_contrail.openstack.proxy
41- cluster.sl_os_contrail.stacklight.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000042- cluster.sl_os_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020043- cluster.sl_os_contrail
44parameters:
45 _param:
46 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
47 reclass_data_revision: master
Adam Tengler81526202017-07-11 13:03:40 +000048 reclass_config_master: ${_param:infra_config_deploy_address}
49 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020050 salt_master_host: 127.0.0.1
51 salt_master_base_environment: prd
52 salt_minion_ca_host: ${linux:network:fqdn}
53 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
54 linux:
55 network:
56 interface:
57 ens4:
58 enabled: true
59 type: eth
60 proto: static
61 address: ${_param:single_address}
62 netmask: 255.255.255.0
63 nginx:
64 server:
65 site:
66 nginx_proxy_openstack_web:
67 proxy:
68 host: prx
69 nginx_proxy_openstack_api_heat_cfn:
70 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000071 salt:
72 master:
73 reactor:
74 reclass/minion/classify:
75 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020076 reclass:
77 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000078 class_mapping:
79 common_node:
80 expression: all
81 node_param:
82 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000083 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000084 linux_system_codename:
85 value_template: <<node_os>>
86 salt_master_host:
87 value_template: <<node_master_ip>>
88 infra_config:
89 expression: <<node_hostname>>__startswith__cfg
90 cluster_param:
91 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000092 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000093 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000094 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000095 cluster_domain:
96 value_template: <<node_domain>>
97 openstack_control01:
98 expression: <<node_hostname>>__equals__ctl01
99 cluster_param:
100 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000101 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000102 openstack_control02:
103 expression: <<node_hostname>>__equals__ctl02
104 cluster_param:
105 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000106 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000107 openstack_control03:
108 expression: <<node_hostname>>__equals__ctl03
109 cluster_param:
110 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000111 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000112 opencontrail_control01:
113 expression: <<node_hostname>>__equals__ntw01
114 cluster_param:
115 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000116 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000117 opencontrail_control02:
118 expression: <<node_hostname>>__equals__ntw02
119 cluster_param:
120 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000121 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000122 opencontrail_control03:
123 expression: <<node_hostname>>__equals__ntw03
124 cluster_param:
125 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000126 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000127 openstack_compute:
128 expression: <<node_hostname>>__startswith__cmp
129 node_class:
130 value_template:
131 - cluster.<<node_cluster>>.openstack.compute
132 node_param:
133 tenant_address:
134 value_template: <<node_tenant_ip>>
135 external_address:
136 value_template: <<node_external_ip>>
137 stacklight_monitor01:
138 expression: <<node_hostname>>__equals__mon01
139 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000140 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000141 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000142 stacklight_monitor02:
143 expression: <<node_hostname>>__equals__mon02
144 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000145 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000146 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000147 stacklight_monitor03:
148 expression: <<node_hostname>>__equals__mon03
149 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000150 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000151 value_template: <<node_control_ip>>
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200152 node:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200153 prx_node:
154 name: ${_param:openstack_proxy_node01_hostname}
155 domain: ${_param:cluster_domain}
156 classes:
157 - cluster.${_param:cluster_name}.stacklight.proxy
158 params:
159 salt_master_host: ${_param:infra_config_deploy_address}
160 linux_system_codename: xenial
161 single_address: ${_param:openstack_proxy_node01_address}
Martin Polreich483e1b82017-08-16 13:24:41 +0200162 stacklight_monitor_node01:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200163 name: ${_param:stacklight_monitor_node01_hostname}
164 domain: ${_param:cluster_domain}
165 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200166 - system.docker.swarm.master
167 - cluster.${_param:cluster_name}.stacklight.client
168 - cluster.${_param:cluster_name}.stacklight.server
169 params:
170 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200171 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200172 single_address: ${_param:stacklight_monitor_node01_address}
173 keepalived_vip_priority: 100
Martin Polreich483e1b82017-08-16 13:24:41 +0200174 stacklight_monitor_node02:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200175 name: ${_param:stacklight_monitor_node02_hostname}
176 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200177 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200178 - system.docker.swarm.manager
179 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200180 params:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200181 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200182 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200183 single_address: ${_param:stacklight_monitor_node02_address}
184 keepalived_vip_priority: 101
Martin Polreich483e1b82017-08-16 13:24:41 +0200185 stacklight_monitor_node03:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200186 name: ${_param:stacklight_monitor_node03_hostname}
187 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200188 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200189 - system.docker.swarm.manager
190 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200191 params:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200192 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200193 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200194 single_address: ${_param:stacklight_monitor_node03_address}
195 keepalived_vip_priority: 102
Martin Polreich2af50952017-08-16 12:08:30 +0200196 opencontrail_control_node01:
197 params:
198 rabbitmq_cluster_role: master
199 opencontrail_control_node02:
200 params:
201 rabbitmq_cluster_role: slave
202 opencontrail_control_node03:
203 params:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200204 rabbitmq_cluster_role: slave
205 openstack_control_node01:
206 classes:
207 - service.galera.master.cluster
208 params:
209 linux_system_codename: xenial
210 mysql_cluster_role: master
211 openstack_control_node02:
212 classes:
213 - service.galera.slave.cluster
214 params:
215 linux_system_codename: xenial
216 mysql_cluster_role: slave
217 openstack_control_node03:
218 classes:
219 - service.galera.slave.cluster
220 params:
221 linux_system_codename: xenial
222 mysql_cluster_role: slave