blob: 14651251c81535103d71c20ed82832c1bb92262f [file] [log] [blame]
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +00001classes:
2- service.git.client
3- system.linux.system.single
Tatyana Leontovichc07941e2018-03-20 16:04:15 +02004- system.linux.system.single.debian
azvyagintsev98cba952018-07-13 12:40:53 +03005- system.linux.system.repo.mcp.apt_mirantis.saltstack
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +00006- system.linux.system.repo_local.mcp.apt_mirantis.openstack
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +01007#- system.openssh.client.lab
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +00008- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02009- system.salt.master.api
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000010- 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
15- system.keystone.client.service.aodh
16- system.keystone.client.service.ceilometer
17- system.keystone.client.service.nova21
18- system.keystone.client.service.nova-placement
19- system.keystone.client.service.glare
20- system.keystone.client.service.cinder3
21- system.keystone.client.service.designate
22- system.mysql.client.single
23- system.reclass.storage.system.openstack_control_cluster
24- system.reclass.storage.system.openstack_compute_multi
25- system.reclass.storage.system.openstack_gateway_single
26- system.reclass.storage.system.openstack_dashboard_single
27- system.reclass.storage.system.stacklightv2_server_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010028- cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_common
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000029- cluster.virtual-offline-pike-ovs-dpdk.openstack.proxy
30- cluster.virtual-offline-pike-ovs-dpdk.stacklight.proxy
31- cluster.virtual-offline-pike-ovs-dpdk
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 reclass_config_master: 192.168.10.90
39 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 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
44 linux:
45 network:
46 interface:
47 ens4:
48 enabled: true
49 type: eth
50 proto: static
51 address: ${_param:single_address}
52 netmask: 255.255.255.0
53 nginx:
54 server:
55 site:
56 nginx_proxy_openstack_web:
57 proxy:
58 host: prx
59 nginx_proxy_openstack_api_heat_cfn:
60 enabled: false
61 salt:
62 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010063 backup: true
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000064 reactor:
65 reclass/minion/classify:
66 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010067 minion:
68 backup: true
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000069 reclass:
70 storage:
71 class_mapping:
72 common_node:
73 expression: all
74 node_param:
75 single_address:
76 value_template: <<node_control_ip>>
77 linux_system_codename:
78 value_template: <<node_os>>
79 salt_master_host:
80 value_template: <<node_master_ip>>
81 infra_config:
82 expression: <<node_hostname>>__startswith__cfg
83 cluster_param:
84 infra_config_address:
85 value_template: <<node_control_ip>>
86 infra_config_deploy_address:
87 value_template: <<node_deploy_ip>>
88 cluster_domain:
89 value_template: <<node_domain>>
90 openstack_control01:
91 expression: <<node_hostname>>__equals__ctl01
92 cluster_param:
93 openstack_control_node01_address:
94 value_template: <<node_control_ip>>
95 openstack_control02:
96 expression: <<node_hostname>>__equals__ctl02
97 cluster_param:
98 openstack_control_node02_address:
99 value_template: <<node_control_ip>>
100 openstack_control03:
101 expression: <<node_hostname>>__equals__ctl03
102 cluster_param:
103 openstack_control_node03_address:
104 value_template: <<node_control_ip>>
105 openstack_compute:
106 expression: <<node_hostname>>__startswith__cmp
107 node_class:
108 value_template:
109 - cluster.<<node_cluster>>.openstack.compute
110 node_param:
111 tenant_address:
112 value_template: <<node_tenant_ip>>
113 external_address:
114 value_template: <<node_external_ip>>
115 openstack_gateway:
116 expression: <<node_hostname>>__startswith__gtw
117 node_class:
118 value_template:
119 - cluster.<<node_cluster>>.openstack.gateway
120 node_param:
121 tenant_address:
122 value_template: <<node_tenant_ip>>
123 external_address:
124 value_template: <<node_external_ip>>
125 cluster_param:
126 openstack_gateway_node01_address:
127 value_template: <<node_control_ip>>
128 stacklight_monitor_node01:
129 expression: <<node_hostname>>__equals__mon01
130 cluster_param:
131 stacklight_monitor_node01_address:
132 value_template: <<node_control_ip>>
133 stacklight_monitor_node02:
134 expression: <<node_hostname>>__equals__mon02
135 cluster_param:
136 stacklight_monitor_node02_address:
137 value_template: <<node_control_ip>>
138 stacklight_monitor_node03:
139 expression: <<node_hostname>>__equals__mon03
140 cluster_param:
141 stacklight_monitor_node03_address:
142 value_template: <<node_control_ip>>
143 openstack_dashboard:
144 expression: <<node_hostname>>__startswith__prx
145 node_class:
146 value_template:
147 - cluster.<<node_cluster>>.openstack.dashboard
148 - cluster.<<node_cluster>>.openstack.proxy
149 cluster_param:
150 openstack_proxy_node01_address:
151 value_template: <<node_control_ip>>
152 node:
153 openstack_control_node01:
154 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100155 - cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_mysql
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000156 - service.galera.master.cluster
157 params:
158 mysql_cluster_role: master
159 linux_system_codename: xenial
160 openstack_control_node02:
161 classes:
162 - service.galera.slave.cluster
163 params:
164 mysql_cluster_role: slave
165 linux_system_codename: xenial
166 openstack_control_node03:
167 classes:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +0100168 - cluster.virtual-offline-pike-ovs-dpdk.infra.backup.server
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000169 - service.galera.slave.cluster
170 params:
171 mysql_cluster_role: slave
172 linux_system_codename: xenial
173 stacklight_server_node01:
174 classes:
175 - system.influxdb.server.single
176 - system.influxdb.database.stacklight
177 openstack_compute_node01:
178 params:
179 single_address: 172.16.10.105
180 tenant_address: 10.1.0.105
181 external_address: 10.16.0.105
182 openstack_compute_node02:
183 params:
184 single_address: 172.16.10.106
185 tenant_address: 10.1.0.106
186 external_address: 10.16.0.106
187 openstack_gateway_node01:
188 params:
189 tenant_address: 10.1.0.110
190 external_address: 10.16.0.110
191 openstack_proxy_node01:
192 classes:
193 - cluster.virtual-offline-pike-ovs-dpdk.openstack.proxy
194 params:
195 linux_system_codename: xenial