blob: ab81805fc4daa60c68afa9f822298afd0a2712b4 [file] [log] [blame]
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03001classes:
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
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03006- 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
Tatyana Leontoviche80eb132017-08-31 15:33:03 +030014- system.keystone.client.service.aodh
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030015- system.keystone.client.service.ceilometer
16- system.keystone.client.service.nova21
Tatyana Leontovichf4fef592017-04-26 21:10:33 +030017- system.keystone.client.service.nova-placement
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030018- system.keystone.client.service.glare
19- system.keystone.client.service.cinder3
Mykyta Karpin3074d382017-05-25 18:36:42 +030020- system.keystone.client.service.designate
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030021- system.mysql.client.single
22- system.reclass.storage.system.openstack_control_cluster
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030023- system.reclass.storage.system.stacklight_server_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020024- system.reclass.storage.system.openstack_compute_multi
25- system.reclass.storage.system.openstack_gateway_single
26- system.reclass.storage.system.openstack_dashboard_single
Tatyana Leontoviche80eb132017-08-31 15:33:03 +030027- system.reclass.storage.system.stacklightv2_server_cluster
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030028- cluster.virtual-mcp-ocata-ovs.openstack.proxy
29- cluster.virtual-mcp-ocata-ovs.stacklight.proxy
30- cluster.virtual-mcp-ocata-ovs
31parameters:
32 _param:
33 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
34 reclass_data_revision: master
35 salt_master_environment_repository: "https://github.com/tcpcloud"
36 salt_master_environment_revision: master
37 reclass_config_master: 192.168.10.100
38 single_address: 172.16.10.100
39 salt_master_host: 127.0.0.1
40 salt_master_base_environment: prd
41 salt_minion_ca_host: ${linux:network:fqdn}
42 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
43 linux:
44 network:
45 interface:
46 ens4:
47 enabled: true
48 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020049 proto: static
50 address: ${_param:single_address}
51 netmask: 255.255.255.0
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030052 nginx:
53 server:
54 site:
55 nginx_proxy_openstack_web:
56 proxy:
57 host: prx
58 nginx_proxy_openstack_api_heat_cfn:
59 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020060 salt:
61 master:
62 reactor:
63 reclass/minion/classify:
64 - salt://reclass/reactor/node_register.sls
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030065 reclass:
66 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020067 class_mapping:
68 common_node:
69 expression: all
70 node_param:
71 single_address:
72 value_template: <<node_control_ip>>
73 linux_system_codename:
74 value_template: <<node_os>>
75 salt_master_host:
76 value_template: <<node_master_ip>>
77 infra_config:
78 expression: <<node_hostname>>__startswith__cfg
79 cluster_param:
80 infra_config_address:
81 value_template: <<node_control_ip>>
82 infra_config_deploy_address:
83 value_template: <<node_deploy_ip>>
84 cluster_domain:
85 value_template: <<node_domain>>
86 openstack_control01:
87 expression: <<node_hostname>>__equals__ctl01
88 cluster_param:
89 openstack_control_node01_address:
90 value_template: <<node_control_ip>>
91 openstack_control02:
92 expression: <<node_hostname>>__equals__ctl02
93 cluster_param:
94 openstack_control_node02_address:
95 value_template: <<node_control_ip>>
96 openstack_control03:
97 expression: <<node_hostname>>__equals__ctl03
98 cluster_param:
99 openstack_control_node03_address:
100 value_template: <<node_control_ip>>
101 openstack_compute:
102 expression: <<node_hostname>>__startswith__cmp
103 node_class:
104 value_template:
105 - cluster.<<node_cluster>>.openstack.compute
106 node_param:
107 tenant_address:
108 value_template: <<node_tenant_ip>>
109 external_address:
110 value_template: <<node_external_ip>>
111 openstack_gateway:
112 expression: <<node_hostname>>__startswith__gtw
113 node_class:
114 value_template:
115 - cluster.<<node_cluster>>.openstack.gateway
116 node_param:
117 tenant_address:
118 value_template: <<node_tenant_ip>>
119 external_address:
120 value_template: <<node_external_ip>>
121 cluster_param:
122 openstack_gateway_node01_address:
123 value_template: <<node_control_ip>>
124 stacklight_monitor_node01:
125 expression: <<node_hostname>>__equals__mon01
126 cluster_param:
127 stacklight_monitor_node03_address:
128 value_template: <<node_control_ip>>
129 stacklight_monitor_node02:
130 expression: <<node_hostname>>__equals__mon02
131 cluster_param:
132 stacklight_monitor_node03_address:
133 value_template: <<node_control_ip>>
134 stacklight_monitor_node03:
135 expression: <<node_hostname>>__equals__mon03
136 cluster_param:
137 stacklight_monitor_node03_address:
138 value_template: <<node_control_ip>>
139 openstack_dashboard:
140 expression: <<node_hostname>>__startswith__prx
141 node_class:
142 value_template:
143 - cluster.<<node_cluster>>.openstack.dashboard
144 - cluster.<<node_cluster>>.openstack.proxy
145 cluster_param:
146 openstack_proxy_node01_address:
147 value_template: <<node_control_ip>>
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +0300148 node:
149 openstack_control_node01:
150 classes:
151 - service.galera.master.cluster
152 params:
153 mysql_cluster_role: master
154 linux_system_codename: xenial
155 openstack_control_node02:
156 classes:
157 - service.galera.slave.cluster
158 params:
159 mysql_cluster_role: slave
160 linux_system_codename: xenial
161 openstack_control_node03:
162 classes:
163 - service.galera.slave.cluster
164 params:
165 mysql_cluster_role: slave
166 linux_system_codename: xenial
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-mcp-ocata-ovs.openstack.proxy
184 params:
185 linux_system_codename: xenial