blob: 56dbe9892100f85ac27c1f97b8e4e6e8d0809c1b [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
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000013- system.keystone.client.single
14- system.keystone.client.service.aodh
15- system.keystone.client.service.ceilometer
16- system.keystone.client.service.nova21
17- system.keystone.client.service.nova-placement
18- system.keystone.client.service.glare
19- system.keystone.client.service.cinder3
20- system.keystone.client.service.designate
21- system.mysql.client.single
22- system.reclass.storage.system.openstack_control_cluster
23- system.reclass.storage.system.openstack_compute_multi
24- system.reclass.storage.system.openstack_gateway_single
25- system.reclass.storage.system.openstack_dashboard_single
26- system.reclass.storage.system.stacklightv2_server_cluster
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010027- cluster.virtual-offline-pike-ovs-dpdk.infra.backup.client_common
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000028- cluster.virtual-offline-pike-ovs-dpdk.stacklight.proxy
29- cluster.virtual-offline-pike-ovs-dpdk
30parameters:
31 _param:
32 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
33 reclass_data_revision: master
34 salt_master_environment_repository: "https://github.com/tcpcloud"
35 salt_master_environment_revision: master
36 reclass_config_master: 192.168.10.90
37 single_address: 172.16.10.100
38 salt_master_host: 127.0.0.1
39 salt_master_base_environment: prd
40 salt_minion_ca_host: ${linux:network:fqdn}
41 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
42 linux:
43 network:
44 interface:
45 ens4:
46 enabled: true
47 type: eth
48 proto: static
49 address: ${_param:single_address}
50 netmask: 255.255.255.0
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000051 salt:
52 master:
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010053 backup: true
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030054 initial_data:
55 engine: backupninja
56 source: ctl03
57 home_dir: /srv/volumes/backup/backupninja
58 host: cfg01.virtual-offline-pike-ovs-dpdk
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +000059 reactor:
60 reclass/minion/classify:
61 - salt://reclass/reactor/node_register.sls
Ondrej Smolac1b4bdd2018-03-13 15:12:38 +010062 minion:
63 backup: true
Tatyana Leontovich42b50bf2018-07-19 22:02:43 +030064 initial_data:
65 engine: backupninja
66 source: ctl03
67 home_dir: /srv/volumes/backup/backupninja
68 host: cfg01.virtual-offline-pike-ovs-dpdk
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:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400179 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300180 dpdk0_pci: '"0000:00:05.0"'
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000181 single_address: 172.16.10.105
182 tenant_address: 10.1.0.105
183 external_address: 10.16.0.105
184 openstack_compute_node02:
185 params:
Michael Polenchuk04a918b2018-07-16 13:59:24 +0400186 dpdk0_name: ens5
Tatyana Leontovich023db382018-07-18 15:21:51 +0300187 dpdk0_pci: '"0000:00:05.0"'
Aleksandr Shaposhnikov25eb1ff2018-02-26 17:56:29 +0000188 single_address: 172.16.10.106
189 tenant_address: 10.1.0.106
190 external_address: 10.16.0.106
191 openstack_gateway_node01:
192 params:
193 tenant_address: 10.1.0.110
194 external_address: 10.16.0.110
195 openstack_proxy_node01:
196 classes:
197 - cluster.virtual-offline-pike-ovs-dpdk.openstack.proxy
198 params:
199 linux_system_codename: xenial