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