blob: f99c321b52db86f3cad57dcc82e1535a5d200ff9 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
3- system.linux.system.single
Martin Polreicha0addcc2018-06-25 11:32:52 +02004- system.linux.system.repo.mcp.apt_mirantis.saltstack
Richard Felklb352e4f2017-08-25 13:33:42 +02005- system.linux.system.repo.mcp.openstack
Ales Komarekc12dd412017-06-27 16:24:42 +02006- system.openssh.client.lab
Ales Komarekc12dd412017-06-27 16:24:42 +02007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Ales Komarekc12dd412017-06-27 16:24:42 +02009- system.reclass.storage.salt
10- system.salt.minion.ca.salt_master
11- system.salt.minion.cert.proxy
12- system.sphinx.server.doc.reclass
Petr Jediný3114a392017-08-02 15:21:09 +020013- system.keystone.client.core
14- system.keystone.client.service.aodh
15- system.keystone.client.service.ceilometer
Ales Komarekc12dd412017-06-27 16:24:42 +020016- system.keystone.client.service.designate
Petr Jediný3114a392017-08-02 15:21:09 +020017- system.keystone.client.service.cinder
18- system.keystone.client.service.cinder2
19- system.keystone.client.service.cinder3
20- system.keystone.client.service.glance
21- system.keystone.client.service.glare
22- system.keystone.client.service.heat
23- system.keystone.client.service.heat-cfn
24- system.keystone.client.service.keystone
25- system.keystone.client.service.neutron
26- system.keystone.client.service.nova-ec2
27- system.keystone.client.service.nova21
28- system.keystone.client.service.nova-placement
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +040029- system.mysql.client.single
Ales Komarekc12dd412017-06-27 16:24:42 +020030- system.reclass.storage.system.openstack_control_cluster
31- system.reclass.storage.system.opencontrail_control_cluster
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +040032- system.reclass.storage.system.stacklightv2_server_cluster
33- system.reclass.storage.system.openstack_compute_multi
34- system.reclass.storage.system.openstack_dashboard_single
35- system.reclass.storage.system.openstack_proxy_single
Petr Michalecf05e3ea2017-08-21 17:33:16 +020036- cluster.sl-os-contrail.openstack.proxy
37- cluster.sl-os-contrail.stacklight.proxy
Petr Michalecf05e3ea2017-08-21 17:33:16 +020038- cluster.sl-os-contrail
Ales Komarekc12dd412017-06-27 16:24:42 +020039parameters:
40 _param:
41 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
42 reclass_data_revision: master
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +040043 reclass_config_master: 192.168.10.90
Michal Kobusaab8a402018-03-21 18:55:36 +010044 reclass_config_master_gateway: 192.168.10.1
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +040045 single_address: 172.16.10.90
Ales Komarekc12dd412017-06-27 16:24:42 +020046 salt_master_host: 127.0.0.1
47 salt_master_base_environment: prd
48 salt_minion_ca_host: ${linux:network:fqdn}
49 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
50 linux:
51 network:
52 interface:
Michal Kobusaab8a402018-03-21 18:55:36 +010053 ens3:
54 enabled: true
55 type: eth
56 proto: static
57 address: ${_param:reclass_config_master}
58 gateway: ${_param:reclass_config_master_gateway}
59 netmask: 255.255.255.0
Ales Komarekc12dd412017-06-27 16:24:42 +020060 ens4:
61 enabled: true
62 type: eth
63 proto: static
64 address: ${_param:single_address}
65 netmask: 255.255.255.0
66 nginx:
67 server:
68 site:
69 nginx_proxy_openstack_web:
70 proxy:
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +040071 host: prx
Ales Komarekc12dd412017-06-27 16:24:42 +020072 nginx_proxy_openstack_api_heat_cfn:
73 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000074 salt:
75 master:
76 reactor:
77 reclass/minion/classify:
78 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020079 reclass:
80 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000081 class_mapping:
82 common_node:
83 expression: all
84 node_param:
85 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000086 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000087 linux_system_codename:
88 value_template: <<node_os>>
89 salt_master_host:
90 value_template: <<node_master_ip>>
91 infra_config:
92 expression: <<node_hostname>>__startswith__cfg
93 cluster_param:
94 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000095 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000096 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000097 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000098 cluster_domain:
99 value_template: <<node_domain>>
100 openstack_control01:
101 expression: <<node_hostname>>__equals__ctl01
102 cluster_param:
103 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000104 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000105 openstack_control02:
106 expression: <<node_hostname>>__equals__ctl02
107 cluster_param:
108 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000109 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000110 openstack_control03:
111 expression: <<node_hostname>>__equals__ctl03
112 cluster_param:
113 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000114 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000115 opencontrail_control01:
116 expression: <<node_hostname>>__equals__ntw01
117 cluster_param:
118 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000119 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000120 opencontrail_control02:
121 expression: <<node_hostname>>__equals__ntw02
122 cluster_param:
123 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000124 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000125 opencontrail_control03:
126 expression: <<node_hostname>>__equals__ntw03
127 cluster_param:
128 opencontrail_control_node03_address:
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400129 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000130 openstack_compute:
131 expression: <<node_hostname>>__startswith__cmp
132 node_class:
133 value_template:
134 - cluster.<<node_cluster>>.openstack.compute
135 node_param:
136 tenant_address:
137 value_template: <<node_tenant_ip>>
138 external_address:
139 value_template: <<node_external_ip>>
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400140 stacklight_monitor_node01:
Adam Tengler4f23d962017-07-04 19:54:59 +0000141 expression: <<node_hostname>>__equals__mon01
142 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000143 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000144 value_template: <<node_control_ip>>
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400145 stacklight_monitor_node02:
Adam Tengler4f23d962017-07-04 19:54:59 +0000146 expression: <<node_hostname>>__equals__mon02
147 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000148 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000149 value_template: <<node_control_ip>>
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400150 stacklight_monitor_node03:
Adam Tengler4f23d962017-07-04 19:54:59 +0000151 expression: <<node_hostname>>__equals__mon03
152 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000153 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000154 value_template: <<node_control_ip>>
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400155 openstack_dashboard:
156 expression: <<node_hostname>>__startswith__prx
157 node_class:
158 value_template:
159 - cluster.<<node_cluster>>.openstack.dashboard
160 - cluster.<<node_cluster>>.openstack.proxy
161 cluster_param:
162 openstack_proxy_node01_address:
163 value_template: <<node_control_ip>>
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200164 node:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200165 openstack_control_node01:
166 classes:
167 - service.galera.master.cluster
168 params:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200169 mysql_cluster_role: master
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400170 linux_system_codename: xenial
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200171 openstack_control_node02:
172 classes:
173 - service.galera.slave.cluster
174 params:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200175 mysql_cluster_role: slave
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400176 linux_system_codename: xenial
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200177 openstack_control_node03:
178 classes:
179 - service.galera.slave.cluster
180 params:
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200181 mysql_cluster_role: slave
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400182 linux_system_codename: xenial
183 stacklight_server_node01:
184 classes:
185 - system.influxdb.server.single
186 - system.influxdb.database.stacklight
187 openstack_proxy_node01:
188 classes:
189 - cluster.sl-os-contrail.openstack.proxy
190 params:
191 linux_system_codename: xenial