blob: c583761197cc2390e9a6cf6787eb687e6c1bef76 [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
Vasyl Saienko71547e62017-07-14 09:27:04 +030023- system.reclass.storage.system.openstack_baremetal_single
Jiri Broulik26104ab2017-08-17 16:40:33 +020024- system.reclass.storage.system.openstack_dashboard_single
25- system.reclass.storage.system.stacklight_server_cluster
Vasyl Saienko71547e62017-07-14 09:27:04 +030026- cluster.virtual-mcp11-ovs-ironic.openstack.proxy
27- cluster.virtual-mcp11-ovs-ironic.stacklight.proxy
28- cluster.virtual-mcp11-ovs-ironic
29parameters:
30 _param:
31 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
32 reclass_data_revision: master
Oleg Grigorovb737db12017-08-23 14:45:56 +030033 reclass_config_master: ${_param:infra_config_deploy_address}
34 single_address: ${_param:infra_config_address}
Vasyl Saienko71547e62017-07-14 09:27:04 +030035 salt_master_environment_repository: "https://github.com/tcpcloud"
36 salt_master_environment_revision: master
Vasyl Saienko71547e62017-07-14 09:27:04 +030037 salt_master_host: 127.0.0.1
38 salt_master_base_environment: prd
39 salt_minion_ca_host: ${linux:network:fqdn}
40 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
41 linux:
42 network:
43 interface:
44 ens4:
45 enabled: true
46 type: eth
47 proto: static
48 address: ${_param:single_address}
49 netmask: 255.255.255.0
50 nginx:
51 server:
52 site:
53 nginx_proxy_openstack_web:
54 proxy:
55 host: prx
56 nginx_proxy_openstack_api_heat_cfn:
57 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020058 salt:
59 master:
60 reactor:
61 reclass/minion/classify:
62 - salt://reclass/reactor/node_register.sls
Oleg Grigorovb737db12017-08-23 14:45:56 +030063 environment:
64 prd:
65 formula:
66 baremetal_simulator:
67 name: salt-formula-baremetal-simulator
68 source: pkg
Vasyl Saienko71547e62017-07-14 09:27:04 +030069 reclass:
70 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020071 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_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>>
118 openstack_bmt:
119 expression: <<node_hostname>>__startswith__bmt
120 node_class:
121 value_template:
122 - cluster.<<node_cluster>>.openstack.baremetal
123 cluster_param:
124 openstack_baremetal_node01_address:
125 value_template: <<node_control_ip>>
Oleg Grigorovb737db12017-08-23 14:45:56 +0300126 openstack_baremetal_node01_baremetal_address:
127 value_template: <<node_baremetal_ip>>
Vasyl Saienko71547e62017-07-14 09:27:04 +0300128 node:
129 openstack_control_node01:
130 classes:
131 - service.galera.master.cluster
132 params:
133 mysql_cluster_role: master
134 linux_system_codename: xenial
135 openstack_control_node02:
136 classes:
137 - service.galera.slave.cluster
138 params:
139 mysql_cluster_role: slave
140 linux_system_codename: xenial
141 openstack_control_node03:
142 classes:
143 - service.galera.slave.cluster
144 params:
145 mysql_cluster_role: slave
146 linux_system_codename: xenial
Jiri Broulikbf0a8af2017-08-22 13:38:47 +0200147 openstack_compute_node01:
148 params:
149 single_address: 172.16.10.105
150 tenant_address: 10.1.0.105
151 external_address: 10.16.0.105
152 openstack_compute_node02:
153 params:
154 single_address: 172.16.10.106
155 tenant_address: 10.1.0.106
Jiri Broulikd3a38672017-08-22 14:15:09 +0200156 external_address: 10.16.0.106
157 openstack_proxy_node01:
158 classes:
159 - cluster.virtual-mcp11-ovs-ironic.openstack.proxy
160 params:
161 linux_system_codename: xenial
162 stacklight_server_node01:
163 classes:
164 - system.influxdb.server.single
165 - system.influxdb.database.stacklight
166 openstack_baremetal_node01:
167 params:
168 single_baremetal_address: ${_param:openstack_baremetal_node01_baremetal_address}
169 keepalived_openstack_baremetal_vip_priority: 100
170 ironic_api_type: 'deploy'
171 tenant_address: 10.1.0.110
Oleg Grigorovb737db12017-08-23 14:45:56 +0300172 external_address: 10.16.0.110