blob: 158efe78228285b9211cf6fa5da6bde992fd6fda [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
Richard Felkl04250022017-10-20 13:55:43 +02008- system.linux.system.repo.docker
Ales Komarekc12dd412017-06-27 16:24:42 +02009- system.openssh.client.lab
Ales Komarekc12dd412017-06-27 16:24:42 +020010- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +020011- system.salt.master.api
Ales Komarekc12dd412017-06-27 16:24:42 +020012- system.reclass.storage.salt
13- system.salt.minion.ca.salt_master
14- system.salt.minion.cert.proxy
15- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020016- system.keystone.client.core
17- system.keystone.client.service.aodh
18- system.keystone.client.service.ceilometer
Ales Komarekc12dd412017-06-27 16:24:42 +020019- system.keystone.client.service.designate
Petr Jediný3114a392017-08-02 15:21:09 +020020- system.keystone.client.service.cinder
21- system.keystone.client.service.cinder2
22- system.keystone.client.service.cinder3
23- system.keystone.client.service.glance
24- system.keystone.client.service.glare
25- system.keystone.client.service.heat
26- system.keystone.client.service.heat-cfn
27- system.keystone.client.service.keystone
28- system.keystone.client.service.neutron
29- system.keystone.client.service.nova-ec2
30- system.keystone.client.service.nova21
31- system.keystone.client.service.nova-placement
Adam Tengler2b36a762017-07-13 14:34:47 +000032- system.mysql.client
33- system.mysql.client.database.cinder
34- system.mysql.client.database.glance
35- system.mysql.client.database.heat
36- system.mysql.client.database.keystone
37- system.mysql.client.database.nova
38- system.mysql.client.database.nova_api
39- system.mysql.client.database.neutron
Ales Komarekc12dd412017-06-27 16:24:42 +020040- system.reclass.storage.system.openstack_control_cluster
41- system.reclass.storage.system.opencontrail_control_cluster
Petr Michalecf05e3ea2017-08-21 17:33:16 +020042- cluster.sl-os-contrail.openstack.proxy
43- cluster.sl-os-contrail.stacklight.proxy
44- cluster.sl-os-contrail.openstack.dashboard
45- cluster.sl-os-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020046parameters:
47 _param:
48 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
49 reclass_data_revision: master
Adam Tengler81526202017-07-11 13:03:40 +000050 reclass_config_master: ${_param:infra_config_deploy_address}
51 single_address: ${_param:infra_config_address}
Ales Komarekc12dd412017-06-27 16:24:42 +020052 salt_master_host: 127.0.0.1
53 salt_master_base_environment: prd
54 salt_minion_ca_host: ${linux:network:fqdn}
55 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
56 linux:
57 network:
58 interface:
59 ens4:
60 enabled: true
61 type: eth
62 proto: static
63 address: ${_param:single_address}
64 netmask: 255.255.255.0
65 nginx:
66 server:
67 site:
68 nginx_proxy_openstack_web:
69 proxy:
Richard Felklb352e4f2017-08-25 13:33:42 +020070 host: cfg
Ales Komarekc12dd412017-06-27 16:24:42 +020071 nginx_proxy_openstack_api_heat_cfn:
72 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000073 salt:
74 master:
75 reactor:
76 reclass/minion/classify:
77 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020078 reclass:
79 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000080 class_mapping:
81 common_node:
82 expression: all
83 node_param:
84 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000085 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000086 linux_system_codename:
87 value_template: <<node_os>>
88 salt_master_host:
89 value_template: <<node_master_ip>>
90 infra_config:
91 expression: <<node_hostname>>__startswith__cfg
92 cluster_param:
93 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000094 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000095 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000096 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000097 cluster_domain:
98 value_template: <<node_domain>>
99 openstack_control01:
100 expression: <<node_hostname>>__equals__ctl01
101 cluster_param:
102 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000103 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000104 openstack_control02:
105 expression: <<node_hostname>>__equals__ctl02
106 cluster_param:
107 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000108 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000109 openstack_control03:
110 expression: <<node_hostname>>__equals__ctl03
111 cluster_param:
112 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000113 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000114 opencontrail_control01:
115 expression: <<node_hostname>>__equals__ntw01
116 cluster_param:
117 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000118 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000119 opencontrail_control02:
120 expression: <<node_hostname>>__equals__ntw02
121 cluster_param:
122 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000123 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000124 opencontrail_control03:
125 expression: <<node_hostname>>__equals__ntw03
126 cluster_param:
127 opencontrail_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000128 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000129 openstack_compute:
130 expression: <<node_hostname>>__startswith__cmp
131 node_class:
132 value_template:
133 - cluster.<<node_cluster>>.openstack.compute
134 node_param:
135 tenant_address:
136 value_template: <<node_tenant_ip>>
137 external_address:
138 value_template: <<node_external_ip>>
139 stacklight_monitor01:
140 expression: <<node_hostname>>__equals__mon01
141 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000142 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000143 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000144 stacklight_monitor02:
145 expression: <<node_hostname>>__equals__mon02
146 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000147 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000148 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000149 stacklight_monitor03:
150 expression: <<node_hostname>>__equals__mon03
151 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000152 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000153 value_template: <<node_control_ip>>
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200154 node:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200155 prx_node:
156 name: ${_param:openstack_proxy_node01_hostname}
157 domain: ${_param:cluster_domain}
158 classes:
159 - cluster.${_param:cluster_name}.stacklight.proxy
160 params:
161 salt_master_host: ${_param:infra_config_deploy_address}
162 linux_system_codename: xenial
163 single_address: ${_param:openstack_proxy_node01_address}
Adam Tengler106a9b72017-09-27 14:21:30 +0200164 stacklight_server_node01:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200165 name: ${_param:stacklight_monitor_node01_hostname}
166 domain: ${_param:cluster_domain}
167 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200168 - 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
Adam Tengler106a9b72017-09-27 14:21:30 +0200176 stacklight_server_node02:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200177 name: ${_param:stacklight_monitor_node02_hostname}
178 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200179 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200180 - system.docker.swarm.manager
181 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200182 params:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200183 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200184 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200185 single_address: ${_param:stacklight_monitor_node02_address}
186 keepalived_vip_priority: 101
Adam Tengler106a9b72017-09-27 14:21:30 +0200187 stacklight_server_node03:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200188 name: ${_param:stacklight_monitor_node03_hostname}
189 domain: ${_param:cluster_domain}
Ales Komarekc12dd412017-06-27 16:24:42 +0200190 classes:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200191 - system.docker.swarm.manager
192 - cluster.${_param:cluster_name}.stacklight.server
Ales Komarekc12dd412017-06-27 16:24:42 +0200193 params:
Martin Polreich1ee2e092017-08-10 16:06:57 +0200194 salt_master_host: ${_param:infra_config_deploy_address}
Ales Komarekc12dd412017-06-27 16:24:42 +0200195 linux_system_codename: xenial
Martin Polreich1ee2e092017-08-10 16:06:57 +0200196 single_address: ${_param:stacklight_monitor_node03_address}
197 keepalived_vip_priority: 102
Martin Polreich2af50952017-08-16 12:08:30 +0200198 opencontrail_control_node01:
199 params:
200 rabbitmq_cluster_role: master
201 opencontrail_control_node02:
202 params:
203 rabbitmq_cluster_role: slave
204 opencontrail_control_node03:
205 params:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200206 rabbitmq_cluster_role: slave
207 openstack_control_node01:
208 classes:
209 - service.galera.master.cluster
210 params:
211 linux_system_codename: xenial
212 mysql_cluster_role: master
213 openstack_control_node02:
214 classes:
215 - service.galera.slave.cluster
216 params:
217 linux_system_codename: xenial
218 mysql_cluster_role: slave
219 openstack_control_node03:
220 classes:
221 - service.galera.slave.cluster
222 params:
223 linux_system_codename: xenial
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200224 mysql_cluster_role: slave