blob: 92da150f069f2d3d975e9bd57e27bee08eb29406 [file] [log] [blame]
Marek Celoudbc643142017-04-07 15:02:38 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
Elena Ezhovaf42731a2017-07-27 17:13:48 +04005- 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
13- system.keystone.client.single
Ildar Svetlov54ec4562017-07-03 15:25:10 +040014- system.keystone.client.service.aodh
Marek Celoudbc643142017-04-07 15:02:38 +020015- system.keystone.client.service.ceilometer
16- system.keystone.client.service.nova21
Marek Celoud4d274922017-04-07 15:52:07 +020017- system.keystone.client.service.glare
18- system.keystone.client.service.cinder3
Marek Celoudbc643142017-04-07 15:02:38 +020019- system.mysql.client.single
20- system.reclass.storage.system.openstack_control_cluster
Simon Pasquier41725422017-05-11 09:43:41 +020021- system.reclass.storage.system.stacklightv2_server_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020022- system.reclass.storage.system.openstack_compute_multi
23- system.reclass.storage.system.openstack_dashboard_single
Jiri Broulikd3a38672017-08-22 14:15:09 +020024- system.reclass.storage.system.openstack_gateway_single
Marek Celoudbc643142017-04-07 15:02:38 +020025- cluster.virtual-mcp11-dvr.openstack.proxy
26- cluster.virtual-mcp11-dvr.stacklight.proxy
27- cluster.virtual-mcp11-dvr
28parameters:
29 _param:
30 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
31 reclass_data_revision: master
32 salt_master_environment_repository: "https://github.com/tcpcloud"
33 salt_master_environment_revision: master
34 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
ibumarskov4149c3d2017-09-08 12:09:10 +030035 reclass_config_master: ${_param:infra_config_deploy_address}
36 single_address: ${_param:infra_config_address}
Marek Celoudbc643142017-04-07 15:02:38 +020037 salt_master_host: 127.0.0.1
38 salt_master_base_environment: prd
39 salt_minion_ca_host: ${linux:network:fqdn}
40 linux:
41 network:
42 interface:
43 ens4:
44 enabled: true
45 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020046 proto: static
47 address: ${_param:single_address}
48 netmask: 255.255.255.0
Marek Celoudbc643142017-04-07 15:02:38 +020049 nginx:
50 server:
51 site:
52 nginx_proxy_openstack_web:
53 proxy:
ibumarskov4149c3d2017-09-08 12:09:10 +030054 host: ${_param:openstack_proxy_address}
Marek Celoudbc643142017-04-07 15:02:38 +020055 nginx_proxy_openstack_api_heat_cfn:
56 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020057 salt:
58 master:
59 reactor:
60 reclass/minion/classify:
61 - salt://reclass/reactor/node_register.sls
Marek Celoudbc643142017-04-07 15:02:38 +020062 reclass:
63 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020064 class_mapping:
65 common_node:
66 expression: all
67 node_param:
68 single_address:
69 value_template: <<node_control_ip>>
70 linux_system_codename:
71 value_template: <<node_os>>
72 salt_master_host:
73 value_template: <<node_master_ip>>
74 infra_config:
75 expression: <<node_hostname>>__startswith__cfg
76 cluster_param:
77 infra_config_address:
78 value_template: <<node_control_ip>>
79 infra_config_deploy_address:
80 value_template: <<node_deploy_ip>>
81 cluster_domain:
82 value_template: <<node_domain>>
83 openstack_control01:
84 expression: <<node_hostname>>__equals__ctl01
85 cluster_param:
86 openstack_control_node01_address:
87 value_template: <<node_control_ip>>
88 openstack_control02:
89 expression: <<node_hostname>>__equals__ctl02
90 cluster_param:
91 openstack_control_node02_address:
92 value_template: <<node_control_ip>>
93 openstack_control03:
94 expression: <<node_hostname>>__equals__ctl03
95 cluster_param:
96 openstack_control_node03_address:
97 value_template: <<node_control_ip>>
98 openstack_compute:
99 expression: <<node_hostname>>__startswith__cmp
100 node_class:
101 value_template:
102 - cluster.<<node_cluster>>.openstack.compute
103 node_param:
104 tenant_address:
105 value_template: <<node_tenant_ip>>
106 external_address:
107 value_template: <<node_external_ip>>
108 openstack_gateway:
109 expression: <<node_hostname>>__startswith__gtw
110 node_class:
111 value_template:
112 - cluster.<<node_cluster>>.openstack.gateway
113 node_param:
114 tenant_address:
115 value_template: <<node_tenant_ip>>
116 external_address:
117 value_template: <<node_external_ip>>
118 cluster_param:
119 openstack_gateway_node01_address:
120 value_template: <<node_control_ip>>
121 stacklight_monitor_node01:
122 expression: <<node_hostname>>__equals__mon01
123 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200124 stacklight_monitor_node01_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200125 value_template: <<node_control_ip>>
126 stacklight_monitor_node02:
127 expression: <<node_hostname>>__equals__mon02
128 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200129 stacklight_monitor_node02_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200130 value_template: <<node_control_ip>>
131 stacklight_monitor_node03:
132 expression: <<node_hostname>>__equals__mon03
133 cluster_param:
134 stacklight_monitor_node03_address:
135 value_template: <<node_control_ip>>
136 openstack_dashboard:
137 expression: <<node_hostname>>__startswith__prx
138 node_class:
139 value_template:
140 - cluster.<<node_cluster>>.openstack.dashboard
141 - cluster.<<node_cluster>>.openstack.proxy
142 cluster_param:
143 openstack_proxy_node01_address:
144 value_template: <<node_control_ip>>
Marek Celoudbc643142017-04-07 15:02:38 +0200145 node:
146 openstack_control_node01:
147 classes:
148 - service.galera.master.cluster
149 params:
150 mysql_cluster_role: master
151 linux_system_codename: xenial
152 openstack_control_node02:
153 classes:
154 - service.galera.slave.cluster
155 params:
156 mysql_cluster_role: slave
157 linux_system_codename: xenial
158 openstack_control_node03:
159 classes:
160 - service.galera.slave.cluster
161 params:
162 mysql_cluster_role: slave
163 linux_system_codename: xenial
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200164 stacklight_server_node01:
Tatyana Leontovich3d9baab2017-04-12 15:43:39 +0300165 classes:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200166 - system.influxdb.server.single
167 - system.influxdb.database.stacklight
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200168 openstack_compute_node01:
169 params:
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200170 tenant_address: 10.1.0.105
171 external_address: 10.16.0.105
172 openstack_compute_node02:
173 params:
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200174 tenant_address: 10.1.0.106
Jiri Broulikd3a38672017-08-22 14:15:09 +0200175 external_address: 10.16.0.106
176 openstack_gateway_node01:
177 params:
178 tenant_address: 10.1.0.110
Jiri Broulikde059892017-08-22 19:05:50 +0200179 external_address: 10.16.0.110
180 openstack_proxy_node01:
181 classes:
182 - cluster.virtual-mcp11-dvr.openstack.proxy
183 params:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200184 linux_system_codename: xenial