blob: 1c88310c63413a78ac3e7b32886f5fc47fbe1f15 [file] [log] [blame]
Vasyl Saienko362d1242017-09-26 12:12:26 +03001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.openssh.client.lab
6- system.salt.master.api
7- system.salt.master.single
8- system.salt.master.formula.pkg.openstack
9- system.salt.master.formula.pkg.saltstack
10#- system.salt.master.pkg
11- system.salt.master.formula.pkg.baremetal
12- system.reclass.storage.salt
13- system.salt.minion.ca.salt_master
14- system.salt.minion.cert.proxy
15- system.sphinx.server.doc.reclass
16- system.keystone.client.core
17- system.keystone.client.service.designate
18- system.keystone.client.service.cinder
19- system.keystone.client.service.cinder2
20- system.keystone.client.service.cinder3
21- system.keystone.client.service.glance
22- system.keystone.client.service.glare
23- system.keystone.client.service.heat
24- system.keystone.client.service.heat-cfn
25- system.keystone.client.service.keystone
26- system.keystone.client.service.neutron
27- system.keystone.client.service.nova-ec2
28- system.keystone.client.service.nova21
29- system.keystone.client.service.nova-placement
30- system.keystone.client.service.ironic
31- system.mysql.client
32- system.mysql.client.database.cinder
33- system.mysql.client.database.glance
34- system.mysql.client.database.heat
35- system.mysql.client.database.keystone
36- system.mysql.client.database.nova
37- system.mysql.client.database.nova_api
38- system.mysql.client.database.neutron
39- system.reclass.storage.system.openstack_control_cluster
40- system.reclass.storage.system.opencontrail_control_cluster
41- cluster.os-ha-contrail-ironic.openstack.proxy
42- cluster.os-ha-contrail-ironic
43parameters:
44 _param:
45 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
46 reclass_data_revision: master
47 reclass_config_master: ${_param:infra_config_deploy_address}
48 single_address: ${_param:infra_config_address}
49 salt_master_host: 127.0.0.1
50 salt_master_base_environment: prd
51 salt_minion_ca_host: ${linux:network:fqdn}
52 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
53 linux:
54 network:
55 interface:
56 ens4:
57 enabled: true
58 type: eth
59 proto: static
60 address: ${_param:single_address}
61 netmask: 255.255.255.0
62 nginx:
63 server:
64 site:
65 nginx_proxy_openstack_web:
66 proxy:
67 host: ${_param:openstack_control_address}
68 nginx_proxy_openstack_api_heat_cfn:
69 enabled: false
70 salt:
71 master:
72 reactor:
73 reclass/minion/classify:
74 - salt://reclass/reactor/node_register.sls
75 environment:
76 prd:
77 formula:
78 baremetal_simulator:
79 name: salt-formula-baremetal-simulator
80 source: pkg
81 bind:
82 source: pkg
83 name: salt-formula-bind
84 apache:
85 source: pkg
86 name: salt-formula-apache
87 reclass:
88 storage:
89 class_mapping:
90 common_node:
91 expression: all
92 node_param:
93 deploy_interface:
94 value_template: <<node_deploy_iface>>
95 primary_interface:
96 value_template: <<node_control_iface>>
97 single_address:
98 value_template: <<node_control_ip>>
99 linux_system_codename:
100 value_template: <<node_os>>
101 salt_master_host:
102 value_template: <<node_master_ip>>
103 infra_config:
104 expression: <<node_hostname>>__startswith__cfg
105 cluster_param:
106 infra_config_address:
107 value_template: <<node_control_ip>>
108 infra_config_deploy_address:
109 value_template: <<node_deploy_ip>>
110 cluster_domain:
111 value_template: <<node_domain>>
112 openstack_control01:
113 expression: <<node_hostname>>__equals__ctl01
114 cluster_param:
115 openstack_control_node01_address:
116 value_template: <<node_control_ip>>
117 openstack_control02:
118 expression: <<node_hostname>>__equals__ctl02
119 cluster_param:
120 openstack_control_node02_address:
121 value_template: <<node_control_ip>>
122 openstack_control03:
123 expression: <<node_hostname>>__equals__ctl03
124 cluster_param:
125 openstack_control_node03_address:
126 value_template: <<node_control_ip>>
127 opencontrail_control01:
128 expression: <<node_hostname>>__equals__ntw01
129 cluster_param:
130 opencontrail_control_node01_address:
131 value_template: <<node_control_ip>>
132 opencontrail_control02:
133 expression: <<node_hostname>>__equals__ntw02
134 cluster_param:
135 opencontrail_control_node02_address:
136 value_template: <<node_control_ip>>
137 opencontrail_control03:
138 expression: <<node_hostname>>__equals__ntw03
139 cluster_param:
140 opencontrail_control_node03_address:
141 value_template: <<node_control_ip>>
142 openstack_compute:
143 expression: <<node_hostname>>__startswith__cmp
144 node_class:
145 value_template:
146 - cluster.<<node_cluster>>.openstack.compute
147 node_param:
148 tenant_address:
149 value_template: <<node_tenant_ip>>
150 external_address:
151 value_template: <<node_external_ip>>
152 openstack_bmt:
153 expression: <<node_hostname>>__startswith__bmt
154 node_class:
155 value_template:
156 - cluster.<<node_cluster>>.openstack.baremetal
157 node_param:
158 baremetal_interface:
159 value_template: brphy
160 baremetal_hw_address:
161 value_template: aa:bb:cc:dd:ee:ff
162 baremetal_address:
163 value_template: 192.168.90.10
164 single_baremetal_address:
165 value_template: 192.168.90.11
166 openstack_tsn:
167 expression: <<node_hostname>>__startswith__tsn
168 node_class:
169 value_template:
170 - cluster.<<node_cluster>>.opencontrail.tsn
171 node:
172 openstack_control_node01:
173 classes:
174 - service.galera.master.cluster
175 - cluster.os-ha-contrail-ironic.openstack.dashboard
176 params:
177 mysql_cluster_role: master
178 linux_system_codename: xenial
179 horizon_identity_host: ${_param:openstack_control_address}
180 openstack_control_node02:
181 classes:
182 - service.galera.slave.cluster
183 - cluster.os-ha-contrail-ironic.openstack.dashboard
184 params:
185 mysql_cluster_role: slave
186 linux_system_codename: xenial
187 horizon_identity_host: ${_param:openstack_control_address}
188 openstack_control_node03:
189 classes:
190 - service.galera.slave.cluster
191 - cluster.os-ha-contrail-ironic.openstack.dashboard
192 params:
193 mysql_cluster_role: slave
194 linux_system_codename: xenial
195 horizon_identity_host: ${_param:openstack_control_address}