blob: cbffebbb5c5f9421e5e96b72f3bfee16ecc7ec02 [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
Dennis Dmitriev2e5f3342018-01-25 19:55:32 +02005- system.linux.system.repo.mcp.apt_mirantis.openstack
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03006- system.openssh.client.lab
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03007- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02008- system.salt.master.api
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03009- 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 Leontovich81b32a92017-07-20 16:24:23 +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 Karpin7bdd53f2017-06-07 18:09:08 +030020- system.keystone.client.service.designate
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030021- system.mysql.client.single
Ivan Udovichenko41d5d5c2017-06-30 17:39:28 +030022- system.reclass.storage.system.openstack_dns_cluster
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030023- system.reclass.storage.system.openstack_control_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 Leontovich81b32a92017-07-20 16:24:23 +030027- system.reclass.storage.system.stacklightv2_server_cluster
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030028- cluster.virtual-mcp-ocata-dvr.openstack.proxy
29- cluster.virtual-mcp-ocata-dvr.stacklight.proxy
30- cluster.virtual-mcp-ocata-dvr
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 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Olivier Bourdon5e343162017-09-05 07:52:15 +020038 reclass_config_master: 192.168.10.90
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030039 single_address: 172.16.10.100
40 salt_master_host: 127.0.0.1
41 salt_master_base_environment: prd
42 salt_minion_ca_host: ${linux:network:fqdn}
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:
Ildar Svetlov30503852017-10-13 17:14:46 +040057 host: ${_param:openstack_proxy_address}
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030058 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:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200127 stacklight_monitor_node01_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200128 value_template: <<node_control_ip>>
129 stacklight_monitor_node02:
130 expression: <<node_hostname>>__equals__mon02
131 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200132 stacklight_monitor_node02_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200133 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 Broulik432ae9c2017-08-17 10:24:23 +0200167 stacklight_server_node01:
Tatyana Leontovich3d9baab2017-04-12 15:43:39 +0300168 classes:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200169 - system.influxdb.server.single
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200170 - system.influxdb.database.stacklight
171 openstack_compute_node01:
172 params:
173 single_address: 172.16.10.105
174 tenant_address: 10.1.0.105
175 external_address: 10.16.0.105
176 openstack_compute_node02:
177 params:
178 single_address: 172.16.10.106
179 tenant_address: 10.1.0.106
Jiri Broulikd3a38672017-08-22 14:15:09 +0200180 external_address: 10.16.0.106
181 openstack_gateway_node01:
182 params:
183 tenant_address: 10.1.0.110
Jiri Broulikde059892017-08-22 19:05:50 +0200184 external_address: 10.16.0.110
185 openstack_proxy_node01:
186 classes:
187 - cluster.virtual-mcp-ocata-dvr.openstack.proxy
188 params:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200189 linux_system_codename: xenial