blob: e85cff6acc54f32345fa533e495f101132ad7093 [file] [log] [blame]
Ales Komarekc12dd412017-06-27 16:24:42 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
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
44 single_address: 172.16.10.90
Ales Komarekc12dd412017-06-27 16:24:42 +020045 salt_master_host: 127.0.0.1
46 salt_master_base_environment: prd
47 salt_minion_ca_host: ${linux:network:fqdn}
48 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
49 linux:
50 network:
51 interface:
52 ens4:
53 enabled: true
54 type: eth
55 proto: static
56 address: ${_param:single_address}
57 netmask: 255.255.255.0
58 nginx:
59 server:
60 site:
61 nginx_proxy_openstack_web:
62 proxy:
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +040063 host: prx
Ales Komarekc12dd412017-06-27 16:24:42 +020064 nginx_proxy_openstack_api_heat_cfn:
65 enabled: false
Adam Tengler4f23d962017-07-04 19:54:59 +000066 salt:
67 master:
68 reactor:
69 reclass/minion/classify:
70 - salt://reclass/reactor/node_register.sls
Ales Komarekc12dd412017-06-27 16:24:42 +020071 reclass:
72 storage:
Adam Tengler4f23d962017-07-04 19:54:59 +000073 class_mapping:
74 common_node:
75 expression: all
76 node_param:
77 single_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000078 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000079 linux_system_codename:
80 value_template: <<node_os>>
81 salt_master_host:
82 value_template: <<node_master_ip>>
83 infra_config:
84 expression: <<node_hostname>>__startswith__cfg
85 cluster_param:
86 infra_config_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000087 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000088 infra_config_deploy_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000089 value_template: <<node_deploy_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000090 cluster_domain:
91 value_template: <<node_domain>>
92 openstack_control01:
93 expression: <<node_hostname>>__equals__ctl01
94 cluster_param:
95 openstack_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +000096 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +000097 openstack_control02:
98 expression: <<node_hostname>>__equals__ctl02
99 cluster_param:
100 openstack_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000101 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000102 openstack_control03:
103 expression: <<node_hostname>>__equals__ctl03
104 cluster_param:
105 openstack_control_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000106 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000107 opencontrail_control01:
108 expression: <<node_hostname>>__equals__ntw01
109 cluster_param:
110 opencontrail_control_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000111 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000112 opencontrail_control02:
113 expression: <<node_hostname>>__equals__ntw02
114 cluster_param:
115 opencontrail_control_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000116 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000117 opencontrail_control03:
118 expression: <<node_hostname>>__equals__ntw03
119 cluster_param:
120 opencontrail_control_node03_address:
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400121 value_template: <<node_control_ip>>
Adam Tengler4f23d962017-07-04 19:54:59 +0000122 openstack_compute:
123 expression: <<node_hostname>>__startswith__cmp
124 node_class:
125 value_template:
126 - cluster.<<node_cluster>>.openstack.compute
127 node_param:
128 tenant_address:
129 value_template: <<node_tenant_ip>>
130 external_address:
131 value_template: <<node_external_ip>>
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400132 stacklight_monitor_node01:
Adam Tengler4f23d962017-07-04 19:54:59 +0000133 expression: <<node_hostname>>__equals__mon01
134 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000135 stacklight_monitor_node01_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000136 value_template: <<node_control_ip>>
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400137 stacklight_monitor_node02:
Adam Tengler4f23d962017-07-04 19:54:59 +0000138 expression: <<node_hostname>>__equals__mon02
139 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000140 stacklight_monitor_node02_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000141 value_template: <<node_control_ip>>
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400142 stacklight_monitor_node03:
Adam Tengler4f23d962017-07-04 19:54:59 +0000143 expression: <<node_hostname>>__equals__mon03
144 cluster_param:
Adam Tenglerc9c1c7c2017-07-13 13:37:51 +0000145 stacklight_monitor_node03_address:
Adam Tenglerc6176502017-07-04 20:45:06 +0000146 value_template: <<node_control_ip>>
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400147 openstack_dashboard:
148 expression: <<node_hostname>>__startswith__prx
149 node_class:
150 value_template:
151 - cluster.<<node_cluster>>.openstack.dashboard
152 - cluster.<<node_cluster>>.openstack.proxy
153 cluster_param:
154 openstack_proxy_node01_address:
155 value_template: <<node_control_ip>>
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200156 node:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200157 openstack_control_node01:
158 classes:
159 - service.galera.master.cluster
160 params:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200161 mysql_cluster_role: master
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400162 linux_system_codename: xenial
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200163 openstack_control_node02:
164 classes:
165 - service.galera.slave.cluster
166 params:
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200167 mysql_cluster_role: slave
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400168 linux_system_codename: xenial
Richard Felkl2b78d8c2017-08-24 11:36:40 +0200169 openstack_control_node03:
170 classes:
171 - service.galera.slave.cluster
172 params:
Petr Michalecf05e3ea2017-08-21 17:33:16 +0200173 mysql_cluster_role: slave
Dmitry Kalashnik35c932b2018-03-19 15:26:09 +0400174 linux_system_codename: xenial
175 stacklight_server_node01:
176 classes:
177 - system.influxdb.server.single
178 - system.influxdb.database.stacklight
179 openstack_proxy_node01:
180 classes:
181 - cluster.sl-os-contrail.openstack.proxy
182 params:
183 linux_system_codename: xenial