blob: b0b20c80831ac3b04604a8b1d2ca551ae5d90a2c [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
7- system.salt.master.api
8- system.salt.master.pkg
9- 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
14- system.keystone.client.service.ceilometer
15- system.keystone.client.service.nova21
Marek Celoud4d274922017-04-07 15:52:07 +020016- system.keystone.client.service.glare
17- system.keystone.client.service.cinder3
Marek Celoudbc643142017-04-07 15:02:38 +020018- system.mysql.client.single
19- system.reclass.storage.system.openstack_control_cluster
Marek Celoudbc643142017-04-07 15:02:38 +020020- system.reclass.storage.system.stacklight_server_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020021- system.reclass.storage.system.openstack_compute_multi
22- system.reclass.storage.system.openstack_dashboard_single
Jiri Broulikd3a38672017-08-22 14:15:09 +020023- system.reclass.storage.system.openstack_gateway_single
Marek Celoudbc643142017-04-07 15:02:38 +020024- cluster.virtual-mcp11-ovs.openstack.proxy
25- cluster.virtual-mcp11-ovs.stacklight.proxy
26- cluster.virtual-mcp11-ovs
27parameters:
28 _param:
29 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
30 reclass_data_revision: master
31 salt_master_environment_repository: "https://github.com/tcpcloud"
32 salt_master_environment_revision: master
Olivier Bourdon5e343162017-09-05 07:52:15 +020033 reclass_config_master: 192.168.10.90
Marek Celoudbc643142017-04-07 15:02:38 +020034 single_address: 172.16.10.100
35 salt_master_host: 127.0.0.1
36 salt_master_base_environment: prd
37 salt_minion_ca_host: ${linux:network:fqdn}
38 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
39 linux:
40 network:
41 interface:
42 ens4:
43 enabled: true
44 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020045 proto: static
46 address: ${_param:single_address}
47 netmask: 255.255.255.0
Marek Celoudbc643142017-04-07 15:02:38 +020048 nginx:
49 server:
50 site:
51 nginx_proxy_openstack_web:
52 proxy:
53 host: prx
54 nginx_proxy_openstack_api_heat_cfn:
55 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020056 salt:
57 master:
58 reactor:
59 reclass/minion/classify:
60 - salt://reclass/reactor/node_register.sls
Marek Celoudbc643142017-04-07 15:02:38 +020061 reclass:
62 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020063 class_mapping:
64 common_node:
65 expression: all
66 node_param:
67 single_address:
68 value_template: <<node_control_ip>>
69 linux_system_codename:
70 value_template: <<node_os>>
71 salt_master_host:
72 value_template: <<node_master_ip>>
73 infra_config:
74 expression: <<node_hostname>>__startswith__cfg
75 cluster_param:
76 infra_config_address:
77 value_template: <<node_control_ip>>
78 infra_config_deploy_address:
79 value_template: <<node_deploy_ip>>
80 cluster_domain:
81 value_template: <<node_domain>>
82 openstack_control01:
83 expression: <<node_hostname>>__equals__ctl01
84 cluster_param:
85 openstack_control_node01_address:
86 value_template: <<node_control_ip>>
87 openstack_control02:
88 expression: <<node_hostname>>__equals__ctl02
89 cluster_param:
90 openstack_control_node02_address:
91 value_template: <<node_control_ip>>
92 openstack_control03:
93 expression: <<node_hostname>>__equals__ctl03
94 cluster_param:
95 openstack_control_node03_address:
96 value_template: <<node_control_ip>>
97 openstack_compute:
98 expression: <<node_hostname>>__startswith__cmp
99 node_class:
100 value_template:
101 - cluster.<<node_cluster>>.openstack.compute
102 node_param:
103 tenant_address:
104 value_template: <<node_tenant_ip>>
105 external_address:
106 value_template: <<node_external_ip>>
107 openstack_gateway:
108 expression: <<node_hostname>>__startswith__gtw
109 node_class:
110 value_template:
111 - cluster.<<node_cluster>>.openstack.gateway
112 node_param:
113 tenant_address:
114 value_template: <<node_tenant_ip>>
115 external_address:
116 value_template: <<node_external_ip>>
117 cluster_param:
118 openstack_gateway_node01_address:
119 value_template: <<node_control_ip>>
120 stacklight_monitor_node01:
121 expression: <<node_hostname>>__equals__mon01
122 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200123 stacklight_monitor_node01_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200124 value_template: <<node_control_ip>>
125 stacklight_monitor_node02:
126 expression: <<node_hostname>>__equals__mon02
127 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200128 stacklight_monitor_node02_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200129 value_template: <<node_control_ip>>
130 stacklight_monitor_node03:
131 expression: <<node_hostname>>__equals__mon03
132 cluster_param:
133 stacklight_monitor_node03_address:
134 value_template: <<node_control_ip>>
135 openstack_dashboard:
136 expression: <<node_hostname>>__startswith__prx
137 node_class:
138 value_template:
139 - cluster.<<node_cluster>>.openstack.dashboard
140 - cluster.<<node_cluster>>.openstack.proxy
141 cluster_param:
142 openstack_proxy_node01_address:
143 value_template: <<node_control_ip>>
Marek Celoudbc643142017-04-07 15:02:38 +0200144 node:
145 openstack_control_node01:
146 classes:
147 - service.galera.master.cluster
148 params:
149 mysql_cluster_role: master
150 linux_system_codename: xenial
151 openstack_control_node02:
152 classes:
153 - service.galera.slave.cluster
154 params:
155 mysql_cluster_role: slave
156 linux_system_codename: xenial
157 openstack_control_node03:
158 classes:
159 - service.galera.slave.cluster
160 params:
161 mysql_cluster_role: slave
162 linux_system_codename: xenial
Marek Celoudbc643142017-04-07 15:02:38 +0200163 stacklight_server_node01:
164 classes:
165 - system.influxdb.server.single
166 - system.influxdb.database.stacklight
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200167 openstack_compute_node01:
168 params:
169 single_address: 172.16.10.105
170 tenant_address: 10.1.0.105
171 external_address: 10.16.0.105
172 openstack_compute_node02:
173 params:
174 single_address: 172.16.10.106
175 tenant_address: 10.1.0.106
Jiri Broulikd3a38672017-08-22 14:15:09 +0200176 external_address: 10.16.0.106
177 openstack_gateway_node01:
178 params:
179 tenant_address: 10.1.0.110
Jiri Broulikde059892017-08-22 19:05:50 +0200180 external_address: 10.16.0.110
181 openstack_proxy_node01:
182 classes:
183 - cluster.virtual-mcp11-ovs.openstack.proxy
184 params:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200185 linux_system_codename: xenial