blob: f42138bf5bee9adfdda2d83930973b321d2e4a2c [file] [log] [blame]
Vasyl Saienko91160482018-02-20 17:31:33 +02001classes:
2- service.git.client
3- system.linux.system.single
Tatyana Leontovichc07941e2018-03-20 16:04:15 +02004- system.linux.system.single.debian
Vasyl Saienko91160482018-02-20 17:31:33 +02005- system.linux.system.repo.mcp.salt
6- system.linux.system.repo.mcp.apt_mirantis.openstack
7- system.openssh.client.lab
Vasyl Saienko91160482018-02-20 17:31:33 +02008- system.salt.master.pkg
Dennis Dmitriev6635bfd2018-03-20 04:50:12 +02009- system.salt.master.api
Mykyta Karpin96cc7982018-03-19 12:41:51 +020010- system.salt.master.formula.pkg.manila
Mykyta Karpin912ac972018-03-20 11:29:23 +020011- system.salt.master.formula.pkg.gnocchi
12- system.salt.master.formula.pkg.panko
Vasyl Saienko91160482018-02-20 17:31:33 +020013- system.reclass.storage.salt
14- system.salt.minion.ca.salt_master
Vasyl Saienko91160482018-02-20 17:31:33 +020015- system.sphinx.server.doc.reclass
16- system.keystone.client.single
Vasyl Saienko91160482018-02-20 17:31:33 +020017- system.keystone.client.service.nova21
18- system.keystone.client.service.nova-placement
19- system.keystone.client.service.cinder3
20- system.keystone.client.service.designate
Mykyta Karpin96cc7982018-03-19 12:41:51 +020021- system.keystone.client.service.manila
22- system.keystone.client.service.manila2
Mykyta Karpin912ac972018-03-20 11:29:23 +020023- system.keystone.client.service.aodh
24- system.keystone.client.service.ceilometer
25- system.keystone.client.service.panko
26- system.keystone.client.service.gnocchi
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +020027- system.reclass.storage.system.openstack_dns_cluster
Vasyl Saienko91160482018-02-20 17:31:33 +020028- system.reclass.storage.system.openstack_control_cluster
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +020029- system.reclass.storage.system.openstack_compute_multi
30- system.reclass.storage.system.openstack_gateway_single
31- system.reclass.storage.system.openstack_dashboard_single
Mykyta Karpin912ac972018-03-20 11:29:23 +020032- system.reclass.storage.system.openstack_telemetry_cluster
Vasyl Saienko91160482018-02-20 17:31:33 +020033- cluster.virtual-mcp-pike-dvr-ssl
34parameters:
35 _param:
36 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
37 reclass_data_revision: master
38 salt_master_environment_repository: "https://github.com/tcpcloud"
39 salt_master_environment_revision: master
40 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
41 reclass_config_master: 192.168.10.90
42 single_address: 172.16.10.100
43 salt_master_host: 127.0.0.1
44 salt_master_base_environment: prd
45 linux:
46 network:
47 interface:
48 ens4:
49 enabled: true
50 type: eth
51 proto: static
52 address: ${_param:single_address}
53 netmask: 255.255.255.0
Vasyl Saienko91160482018-02-20 17:31:33 +020054 salt:
55 master:
56 reactor:
57 reclass/minion/classify:
58 - salt://reclass/reactor/node_register.sls
59 reclass:
60 storage:
61 class_mapping:
62 common_node:
63 expression: all
64 node_param:
65 single_address:
66 value_template: <<node_control_ip>>
67 linux_system_codename:
68 value_template: <<node_os>>
69 salt_master_host:
70 value_template: <<node_master_ip>>
71 infra_config:
72 expression: <<node_hostname>>__startswith__cfg
73 cluster_param:
74 infra_config_address:
75 value_template: <<node_control_ip>>
76 infra_config_deploy_address:
77 value_template: <<node_deploy_ip>>
78 cluster_domain:
79 value_template: <<node_domain>>
80 openstack_control01:
81 expression: <<node_hostname>>__equals__ctl01
82 cluster_param:
83 openstack_control_node01_address:
84 value_template: <<node_control_ip>>
85 openstack_control02:
86 expression: <<node_hostname>>__equals__ctl02
87 cluster_param:
88 openstack_control_node02_address:
89 value_template: <<node_control_ip>>
90 openstack_control03:
91 expression: <<node_hostname>>__equals__ctl03
92 cluster_param:
93 openstack_control_node03_address:
94 value_template: <<node_control_ip>>
95 openstack_compute:
96 expression: <<node_hostname>>__startswith__cmp
97 node_class:
98 value_template:
99 - cluster.<<node_cluster>>.openstack.compute
100 node_param:
101 tenant_address:
102 value_template: <<node_tenant_ip>>
103 external_address:
104 value_template: <<node_external_ip>>
105 openstack_gateway:
106 expression: <<node_hostname>>__startswith__gtw
107 node_class:
108 value_template:
109 - cluster.<<node_cluster>>.openstack.gateway
110 node_param:
111 tenant_address:
112 value_template: <<node_tenant_ip>>
113 external_address:
114 value_template: <<node_external_ip>>
115 cluster_param:
116 openstack_gateway_node01_address:
117 value_template: <<node_control_ip>>
Vasyl Saienko91160482018-02-20 17:31:33 +0200118 openstack_dashboard:
119 expression: <<node_hostname>>__startswith__prx
120 node_class:
121 value_template:
122 - cluster.<<node_cluster>>.openstack.dashboard
123 - cluster.<<node_cluster>>.openstack.proxy
124 cluster_param:
125 openstack_proxy_node01_address:
126 value_template: <<node_control_ip>>
Mykyta Karpin96cc7982018-03-19 12:41:51 +0200127 openstack_share:
128 expression: <<node_hostname>>__startswith__share
129 node_class:
130 value_template:
131 - cluster.<<node_cluster>>.openstack.share
132 node_param:
133 manila_share_address:
134 value_template: <<node_tenant_ip>>
Mykyta Karpin912ac972018-03-20 11:29:23 +0200135 openstack_telemetry01:
136 expression: <<node_hostname>>__equals__mdb01
137 cluster_param:
138 openstack_telemetry_node01_address:
139 value_template: <<node_control_ip>>
140 openstack_telemetry02:
141 expression: <<node_hostname>>__equals__mdb02
142 cluster_param:
143 openstack_telemetry_node02_address:
144 value_template: <<node_control_ip>>
145 openstack_telemetry03:
146 expression: <<node_hostname>>__equals__mdb03
147 cluster_param:
148 openstack_telemetry_node03_address:
149 value_template: <<node_control_ip>>
Vasyl Saienko91160482018-02-20 17:31:33 +0200150 node:
151 openstack_control_node01:
152 classes:
153 - service.galera.master.cluster
154 params:
155 mysql_cluster_role: master
156 linux_system_codename: xenial
157 openstack_control_node02:
158 classes:
159 - service.galera.slave.cluster
160 params:
161 mysql_cluster_role: slave
162 linux_system_codename: xenial
163 openstack_control_node03:
164 classes:
165 - service.galera.slave.cluster
166 params:
167 mysql_cluster_role: slave
168 linux_system_codename: xenial
Tatyana Leontovich5bfb1e62018-02-22 19:39:09 +0200169 openstack_compute_node01:
170 params:
171 single_address: 172.16.10.105
172 tenant_address: 10.1.0.105
173 external_address: 10.16.0.105
174 openstack_compute_node02:
175 params:
176 single_address: 172.16.10.106
177 tenant_address: 10.1.0.106
178 external_address: 10.16.0.106
179 openstack_gateway_node01:
180 params:
181 tenant_address: 10.1.0.110
182 external_address: 10.16.0.110
183 openstack_proxy_node01:
184 classes:
185 - cluster.virtual-mcp-pike-dvr-ssl.openstack.proxy
186 params:
187 linux_system_codename: xenial
Mykyta Karpin912ac972018-03-20 11:29:23 +0200188 openstack_telemetry_node01:
189 params:
190 # create resources only from 1 controller
191 # to prevent race conditions
192 ceilometer_create_gnocchi_resources: true
193 redis_cluster_role: 'master'
194 openstack_telemetry_node02:
195 params:
196 redis_cluster_role: 'slave'
197 openstack_telemetry_node03:
198 params:
199 redis_cluster_role: 'slave'