blob: a339f4bb7d3c542148065061a03ed449c6f55740 [file] [log] [blame]
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03001classes:
2- service.git.client
3- system.linux.system.single
Tatyana Leontovichc07941e2018-03-20 16:04:15 +02004- system.linux.system.single.debian
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03005- system.linux.system.repo.mcp.salt
Dennis Dmitriev2e5f3342018-01-25 19:55:32 +02006- system.linux.system.repo.mcp.apt_mirantis.openstack
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03007- system.openssh.client.lab
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +03008- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02009- system.salt.master.api
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030010- system.reclass.storage.salt
11- system.salt.minion.ca.salt_master
12- system.salt.minion.cert.proxy
13- system.sphinx.server.doc.reclass
14- system.keystone.client.single
Tatyana Leontovich81b32a92017-07-20 16:24:23 +030015- system.keystone.client.service.aodh
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030016- system.keystone.client.service.ceilometer
17- system.keystone.client.service.nova21
Tatyana Leontovichf4fef592017-04-26 21:10:33 +030018- system.keystone.client.service.nova-placement
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030019- system.keystone.client.service.glare
20- system.keystone.client.service.cinder3
Mykyta Karpin7bdd53f2017-06-07 18:09:08 +030021- system.keystone.client.service.designate
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030022- system.mysql.client.single
Ivan Udovichenko41d5d5c2017-06-30 17:39:28 +030023- system.reclass.storage.system.openstack_dns_cluster
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030024- system.reclass.storage.system.openstack_control_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020025- system.reclass.storage.system.openstack_compute_multi
26- system.reclass.storage.system.openstack_gateway_single
27- system.reclass.storage.system.openstack_dashboard_single
Tatyana Leontovich81b32a92017-07-20 16:24:23 +030028- system.reclass.storage.system.stacklightv2_server_cluster
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030029- cluster.virtual-mcp-ocata-dvr.openstack.proxy
30- cluster.virtual-mcp-ocata-dvr.stacklight.proxy
31- cluster.virtual-mcp-ocata-dvr
32parameters:
33 _param:
34 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
35 reclass_data_revision: master
36 salt_master_environment_repository: "https://github.com/tcpcloud"
37 salt_master_environment_revision: master
38 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
Olivier Bourdon5e343162017-09-05 07:52:15 +020039 reclass_config_master: 192.168.10.90
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030040 single_address: 172.16.10.100
41 salt_master_host: 127.0.0.1
42 salt_master_base_environment: prd
43 salt_minion_ca_host: ${linux:network:fqdn}
44 linux:
45 network:
46 interface:
47 ens4:
48 enabled: true
49 type: eth
Petr Jediný9b3a0ed2017-04-13 15:12:09 +020050 proto: static
51 address: ${_param:single_address}
52 netmask: 255.255.255.0
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030053 nginx:
54 server:
55 site:
56 nginx_proxy_openstack_web:
57 proxy:
Ildar Svetlov30503852017-10-13 17:14:46 +040058 host: ${_param:openstack_proxy_address}
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030059 nginx_proxy_openstack_api_heat_cfn:
60 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020061 salt:
62 master:
63 reactor:
64 reclass/minion/classify:
65 - salt://reclass/reactor/node_register.sls
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +030066 reclass:
67 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020068 class_mapping:
69 common_node:
70 expression: all
71 node_param:
72 single_address:
73 value_template: <<node_control_ip>>
74 linux_system_codename:
75 value_template: <<node_os>>
76 salt_master_host:
77 value_template: <<node_master_ip>>
78 infra_config:
79 expression: <<node_hostname>>__startswith__cfg
80 cluster_param:
81 infra_config_address:
82 value_template: <<node_control_ip>>
83 infra_config_deploy_address:
84 value_template: <<node_deploy_ip>>
85 cluster_domain:
86 value_template: <<node_domain>>
87 openstack_control01:
88 expression: <<node_hostname>>__equals__ctl01
89 cluster_param:
90 openstack_control_node01_address:
91 value_template: <<node_control_ip>>
92 openstack_control02:
93 expression: <<node_hostname>>__equals__ctl02
94 cluster_param:
95 openstack_control_node02_address:
96 value_template: <<node_control_ip>>
97 openstack_control03:
98 expression: <<node_hostname>>__equals__ctl03
99 cluster_param:
100 openstack_control_node03_address:
101 value_template: <<node_control_ip>>
102 openstack_compute:
103 expression: <<node_hostname>>__startswith__cmp
104 node_class:
105 value_template:
106 - cluster.<<node_cluster>>.openstack.compute
107 node_param:
108 tenant_address:
109 value_template: <<node_tenant_ip>>
110 external_address:
111 value_template: <<node_external_ip>>
112 openstack_gateway:
113 expression: <<node_hostname>>__startswith__gtw
114 node_class:
115 value_template:
116 - cluster.<<node_cluster>>.openstack.gateway
117 node_param:
118 tenant_address:
119 value_template: <<node_tenant_ip>>
120 external_address:
121 value_template: <<node_external_ip>>
122 cluster_param:
123 openstack_gateway_node01_address:
124 value_template: <<node_control_ip>>
125 stacklight_monitor_node01:
126 expression: <<node_hostname>>__equals__mon01
127 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200128 stacklight_monitor_node01_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200129 value_template: <<node_control_ip>>
130 stacklight_monitor_node02:
131 expression: <<node_hostname>>__equals__mon02
132 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200133 stacklight_monitor_node02_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200134 value_template: <<node_control_ip>>
135 stacklight_monitor_node03:
136 expression: <<node_hostname>>__equals__mon03
137 cluster_param:
138 stacklight_monitor_node03_address:
139 value_template: <<node_control_ip>>
140 openstack_dashboard:
141 expression: <<node_hostname>>__startswith__prx
142 node_class:
143 value_template:
144 - cluster.<<node_cluster>>.openstack.dashboard
145 - cluster.<<node_cluster>>.openstack.proxy
146 cluster_param:
147 openstack_proxy_node01_address:
148 value_template: <<node_control_ip>>
Tatyana Leontovich3ca999a2017-04-11 12:52:19 +0300149 node:
150 openstack_control_node01:
151 classes:
152 - service.galera.master.cluster
153 params:
154 mysql_cluster_role: master
155 linux_system_codename: xenial
156 openstack_control_node02:
157 classes:
158 - service.galera.slave.cluster
159 params:
160 mysql_cluster_role: slave
161 linux_system_codename: xenial
162 openstack_control_node03:
163 classes:
164 - service.galera.slave.cluster
165 params:
166 mysql_cluster_role: slave
167 linux_system_codename: xenial
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200168 stacklight_server_node01:
Tatyana Leontovich3d9baab2017-04-12 15:43:39 +0300169 classes:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200170 - system.influxdb.server.single
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200171 - system.influxdb.database.stacklight
172 openstack_compute_node01:
173 params:
174 single_address: 172.16.10.105
175 tenant_address: 10.1.0.105
176 external_address: 10.16.0.105
177 openstack_compute_node02:
178 params:
179 single_address: 172.16.10.106
180 tenant_address: 10.1.0.106
Jiri Broulikd3a38672017-08-22 14:15:09 +0200181 external_address: 10.16.0.106
182 openstack_gateway_node01:
183 params:
184 tenant_address: 10.1.0.110
Jiri Broulikde059892017-08-22 19:05:50 +0200185 external_address: 10.16.0.110
186 openstack_proxy_node01:
187 classes:
188 - cluster.virtual-mcp-ocata-dvr.openstack.proxy
189 params:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200190 linux_system_codename: xenial