blob: e3c77d4861fb516f06ea45d26ad57a6c17768583 [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- system.reclass.storage.system.stacklightv2_server_cluster
41- cluster.sl_os_contrail.openstack.proxy
42- cluster.sl_os_contrail.stacklight.proxy
Adam Tengler0c624442017-07-04 13:25:36 +000043- cluster.sl_os_contrail.openstack.dashboard
Ales Komarekc12dd412017-06-27 16:24:42 +020044- cluster.sl_os_contrail
45parameters:
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:
69 host: prx
70 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>>
Ales Komarekc12dd412017-06-27 16:24:42 +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}
Martin Polreich483e1b82017-08-16 13:24:41 +0200163 stacklight_monitor_node01:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200164 name: ${_param:stacklight_monitor_node01_hostname}
165 domain: ${_param:cluster_domain}
166 classes:
167 - service.galera.master.cluster
168 - system.docker.swarm.master
169 - cluster.${_param:cluster_name}.stacklight.client
170 - cluster.${_param:cluster_name}.stacklight.server
171 params:
172 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200173 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200174 single_address: ${_param:stacklight_monitor_node01_address}
175 keepalived_vip_priority: 100
176 mysql_cluster_role: master
Martin Polreich483e1b82017-08-16 13:24:41 +0200177 stacklight_monitor_node02:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200178 name: ${_param:stacklight_monitor_node02_hostname}
179 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200180 classes:
181 - service.galera.slave.cluster
Martin Polreich1ee2e092017-08-10 16:06:57 +0200182 - system.docker.swarm.manager
183 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200184 params:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200185 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200186 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200187 single_address: ${_param:stacklight_monitor_node02_address}
188 keepalived_vip_priority: 101
189 mysql_cluster_role: slave
Martin Polreich483e1b82017-08-16 13:24:41 +0200190 stacklight_monitor_node03:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200191 name: ${_param:stacklight_monitor_node03_hostname}
192 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200193 classes:
194 - service.galera.slave.cluster
Martin Polreich1ee2e092017-08-10 16:06:57 +0200195 - system.docker.swarm.manager
196 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200197 params:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200198 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200199 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200200 single_address: ${_param:stacklight_monitor_node03_address}
201 keepalived_vip_priority: 102
202 mysql_cluster_role: slave
Martin Polreich2af50952017-08-16 12:08:30 +0200203 opencontrail_control_node01:
204 params:
205 rabbitmq_cluster_role: master
206 opencontrail_control_node02:
207 params:
208 rabbitmq_cluster_role: slave
209 opencontrail_control_node03:
210 params:
211 rabbitmq_cluster_role: slave