blob: 18a7ccb2b7770cf17dbf533fbf279b8b55814d63 [file] [log] [blame]
Marek Celoudbc643142017-04-07 15:02:38 +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
Petr Jediný90e83ef2017-06-28 16:33:04 +02005- system.linux.system.repo.mcp.openstack
Marek Celoudbc643142017-04-07 15:02:38 +02006- system.openssh.client.lab
Marek Celoudbc643142017-04-07 15:02:38 +02007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Marek Celoudbc643142017-04-07 15:02:38 +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ý90e83ef2017-06-28 16:33:04 +020013- system.keystone.client.core
Marek Celoudbc643142017-04-07 15:02:38 +020014- system.keystone.client.service.aodh
15- system.keystone.client.service.ceilometer
Mykyta Karpin7bdd53f2017-06-07 18:09:08 +030016- system.keystone.client.service.designate
Petr Jediný90e83ef2017-06-28 16:33:04 +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
Marek Celoudbc643142017-04-07 15:02:38 +020029- system.mysql.client.single
30- system.reclass.storage.system.openstack_control_cluster
31- system.reclass.storage.system.opencontrail_control_cluster
Simon Pasquier6df5f842017-05-15 16:00:22 +020032- system.reclass.storage.system.stacklightv2_server_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020033- system.reclass.storage.system.openstack_compute_multi
34- system.reclass.storage.system.openstack_dashboard_single
35- system.reclass.storage.system.openstack_proxy_single
Marek Celoudbc643142017-04-07 15:02:38 +020036- cluster.virtual-mcp11-contrail.openstack.proxy
37- cluster.virtual-mcp11-contrail.stacklight.proxy
38- cluster.virtual-mcp11-contrail
39parameters:
40 _param:
41 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
42 reclass_data_revision: master
Olivier Bourdon5e343162017-09-05 07:52:15 +020043 reclass_config_master: 192.168.10.90
Michal Kobusaab8a402018-03-21 18:55:36 +010044 reclass_config_master_gateway: 192.168.10.1
Michal Kobus10676582018-03-12 11:57:32 +010045 single_address: 172.16.10.90
Marek Celoudbc643142017-04-07 15:02:38 +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
Marek Celoudbc643142017-04-07 15:02:38 +020060 ens4:
61 enabled: true
62 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020063 proto: static
64 address: ${_param:single_address}
65 netmask: 255.255.255.0
Marek Celoudbc643142017-04-07 15:02:38 +020066 nginx:
67 server:
68 site:
69 nginx_proxy_openstack_web:
70 proxy:
71 host: prx
72 nginx_proxy_openstack_api_heat_cfn:
73 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020074 salt:
75 master:
76 reactor:
77 reclass/minion/classify:
78 - salt://reclass/reactor/node_register.sls
Marek Celoudbc643142017-04-07 15:02:38 +020079 reclass:
80 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020081 class_mapping:
82 common_node:
83 expression: all
84 node_param:
85 single_address:
86 value_template: <<node_control_ip>>
87 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:
95 value_template: <<node_control_ip>>
96 infra_config_deploy_address:
97 value_template: <<node_deploy_ip>>
98 cluster_domain:
99 value_template: <<node_domain>>
100 openstack_control01:
101 expression: <<node_hostname>>__equals__ctl01
102 cluster_param:
103 openstack_control_node01_address:
104 value_template: <<node_control_ip>>
105 openstack_control02:
106 expression: <<node_hostname>>__equals__ctl02
107 cluster_param:
108 openstack_control_node02_address:
109 value_template: <<node_control_ip>>
110 openstack_control03:
111 expression: <<node_hostname>>__equals__ctl03
112 cluster_param:
113 openstack_control_node03_address:
114 value_template: <<node_control_ip>>
115 opencontrail_control01:
116 expression: <<node_hostname>>__equals__ntw01
117 cluster_param:
118 opencontrail_control_node01_address:
119 value_template: <<node_control_ip>>
120 opencontrail_control02:
121 expression: <<node_hostname>>__equals__ntw02
122 cluster_param:
123 opencontrail_control_node02_address:
124 value_template: <<node_control_ip>>
125 opencontrail_control03:
126 expression: <<node_hostname>>__equals__ntw03
127 cluster_param:
128 opencontrail_control_node03_address:
Michal Kobus10676582018-03-12 11:57:32 +0100129 value_template: <<node_control_ip>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200130 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>>
140 stacklight_monitor_node01:
141 expression: <<node_hostname>>__equals__mon01
142 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200143 stacklight_monitor_node01_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200144 value_template: <<node_control_ip>>
145 stacklight_monitor_node02:
146 expression: <<node_hostname>>__equals__mon02
147 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200148 stacklight_monitor_node02_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200149 value_template: <<node_control_ip>>
150 stacklight_monitor_node03:
151 expression: <<node_hostname>>__equals__mon03
152 cluster_param:
153 stacklight_monitor_node03_address:
154 value_template: <<node_control_ip>>
155 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>>
Marek Celoudbc643142017-04-07 15:02:38 +0200164 node:
165 openstack_control_node01:
166 classes:
167 - service.galera.master.cluster
168 params:
169 mysql_cluster_role: master
170 linux_system_codename: xenial
171 openstack_control_node02:
172 classes:
173 - service.galera.slave.cluster
174 params:
175 mysql_cluster_role: slave
176 linux_system_codename: xenial
177 openstack_control_node03:
178 classes:
179 - service.galera.slave.cluster
180 params:
181 mysql_cluster_role: slave
182 linux_system_codename: xenial
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200183 stacklight_server_node01:
Marek Celoudbc643142017-04-07 15:02:38 +0200184 classes:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200185 - system.influxdb.server.single
186 - system.influxdb.database.stacklight
Jiri Broulikd3a38672017-08-22 14:15:09 +0200187 openstack_proxy_node01:
188 classes:
189 - cluster.virtual-mcp11-contrail.openstack.proxy
Jiri Broulikde059892017-08-22 19:05:50 +0200190 params:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200191 linux_system_codename: xenial