blob: 09d4de3e707cf52702313149fa16de5455e2fd58 [file] [log] [blame]
Vasyl Saienko71547e62017-07-14 09:27:04 +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
Vasyl Saienko71547e62017-07-14 09:27:04 +03006- system.openssh.client.lab
7- system.salt.master.api
8- system.salt.master.pkg
9- system.salt.master.formula.pkg.baremetal
10- 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.ceilometer
16- system.keystone.client.service.nova21
17- system.keystone.client.service.glare
18- system.keystone.client.service.cinder3
19- system.keystone.client.service.ironic
20- system.keystone.client.service.nova-placement
21- system.mysql.client.single
22- system.reclass.storage.system.openstack_control_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020023- system.reclass.storage.system.openstack_compute_multi
Vasyl Saienko71547e62017-07-14 09:27:04 +030024- system.reclass.storage.system.openstack_baremetal_single
Jiri Broulik26104ab2017-08-17 16:40:33 +020025- system.reclass.storage.system.openstack_dashboard_single
26- system.reclass.storage.system.stacklight_server_cluster
Vasyl Saienko71547e62017-07-14 09:27:04 +030027- cluster.virtual-mcp11-ovs-ironic.openstack.proxy
28- cluster.virtual-mcp11-ovs-ironic.stacklight.proxy
29- cluster.virtual-mcp11-ovs-ironic
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.100
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
51 nginx:
52 server:
53 site:
54 nginx_proxy_openstack_web:
55 proxy:
56 host: prx
57 nginx_proxy_openstack_api_heat_cfn:
58 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020059 salt:
60 master:
61 reactor:
62 reclass/minion/classify:
63 - salt://reclass/reactor/node_register.sls
Vasyl Saienko71547e62017-07-14 09:27:04 +030064 reclass:
65 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020066 class_mapping:
67 common_node:
68 expression: all
69 node_param:
70 single_address:
71 value_template: <<node_control_ip>>
72 linux_system_codename:
73 value_template: <<node_os>>
74 salt_master_host:
75 value_template: <<node_master_ip>>
76 infra_config:
77 expression: <<node_hostname>>__startswith__cfg
78 cluster_param:
79 infra_config_address:
80 value_template: <<node_control_ip>>
81 infra_config_deploy_address:
82 value_template: <<node_deploy_ip>>
83 cluster_domain:
84 value_template: <<node_domain>>
85 openstack_control01:
86 expression: <<node_hostname>>__equals__ctl01
87 cluster_param:
88 openstack_control_node01_address:
89 value_template: <<node_control_ip>>
90 openstack_control02:
91 expression: <<node_hostname>>__equals__ctl02
92 cluster_param:
93 openstack_control_node02_address:
94 value_template: <<node_control_ip>>
95 openstack_control03:
96 expression: <<node_hostname>>__equals__ctl03
97 cluster_param:
98 openstack_control_node03_address:
99 value_template: <<node_control_ip>>
100 openstack_gateway:
101 expression: <<node_hostname>>__startswith__gtw
102 node_class:
103 value_template:
104 - cluster.<<node_cluster>>.openstack.gateway
105 node_param:
106 tenant_address:
107 value_template: <<node_tenant_ip>>
108 external_address:
109 value_template: <<node_external_ip>>
110 cluster_param:
111 openstack_gateway_node01_address:
112 value_template: <<node_control_ip>>
113 openstack_bmt:
114 expression: <<node_hostname>>__startswith__bmt
115 node_class:
116 value_template:
117 - cluster.<<node_cluster>>.openstack.baremetal
118 cluster_param:
119 openstack_baremetal_node01_address:
120 value_template: <<node_control_ip>>
Vasyl Saienko71547e62017-07-14 09:27:04 +0300121 node:
122 openstack_control_node01:
123 classes:
124 - service.galera.master.cluster
125 params:
126 mysql_cluster_role: master
127 linux_system_codename: xenial
128 openstack_control_node02:
129 classes:
130 - service.galera.slave.cluster
131 params:
132 mysql_cluster_role: slave
133 linux_system_codename: xenial
134 openstack_control_node03:
135 classes:
136 - service.galera.slave.cluster
137 params:
138 mysql_cluster_role: slave
139 linux_system_codename: xenial
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200140 openstack_compute_node01:
141 params:
142 single_address: 172.16.10.105
143 tenant_address: 10.1.0.105
144 external_address: 10.16.0.105
145 openstack_compute_node02:
146 params:
147 single_address: 172.16.10.106
148 tenant_address: 10.1.0.106
Jiri Broulikd3a38672017-08-22 14:15:09 +0200149 external_address: 10.16.0.106
150 openstack_proxy_node01:
151 classes:
152 - cluster.virtual-mcp11-ovs-ironic.openstack.proxy
153 params:
154 linux_system_codename: xenial
155 stacklight_server_node01:
156 classes:
157 - system.influxdb.server.single
158 - system.influxdb.database.stacklight
159 openstack_baremetal_node01:
160 params:
161 single_baremetal_address: ${_param:openstack_baremetal_node01_baremetal_address}
162 keepalived_openstack_baremetal_vip_priority: 100
163 ironic_api_type: 'deploy'
164 tenant_address: 10.1.0.110
165 external_address: 10.16.0.110