blob: ad9a18fb751d3878e85905342d99b6f3728aaac2 [file] [log] [blame]
Vasyl Saienkob58c6412018-02-21 14:18:05 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
5- system.linux.system.repo.mcp.openstack
6- 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
23- system.reclass.storage.system.openstack_baremetal_single
24- system.reclass.storage.system.openstack_dashboard_single
25- system.reclass.storage.system.stacklight_server_cluster
26- cluster.virtual-mcp11-ovs-ironic-ssl.openstack.proxy
27- cluster.virtual-mcp11-ovs-ironic-ssl.stacklight.proxy
28- cluster.virtual-mcp11-ovs-ironic-ssl
29parameters:
30 _param:
31 reclass_data_repository: https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab
32 reclass_data_revision: master
33 reclass_config_master: ${_param:infra_config_deploy_address}
34 single_address: ${_param:infra_config_address}
35 salt_master_environment_repository: "https://github.com/tcpcloud"
36 salt_master_environment_revision: master
37 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: ${_param:openstack_control_address}
56 nginx_proxy_openstack_api_heat_cfn:
57 enabled: false
58 salt:
59 master:
60 reactor:
61 reclass/minion/classify:
62 - salt://reclass/reactor/node_register.sls
63 environment:
64 prd:
65 formula:
66 baremetal_simulator:
67 name: salt-formula-baremetal-simulator
68 source: pkg
69 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 openstack_bmt:
129 expression: <<node_hostname>>__startswith__bmt
130 node_class:
131 value_template:
132 - cluster.<<node_cluster>>.openstack.baremetal
133 cluster_param:
134 openstack_baremetal_node01_address:
135 value_template: <<node_control_ip>>
136 openstack_baremetal_node01_baremetal_address:
137 value_template: <<node_baremetal_ip>>
138 node:
139 openstack_control_node01:
140 classes:
141 - service.galera.master.cluster
142 params:
143 mysql_cluster_role: master
144 linux_system_codename: xenial
145 openstack_control_node02:
146 classes:
147 - service.galera.slave.cluster
148 params:
149 mysql_cluster_role: slave
150 linux_system_codename: xenial
151 openstack_control_node03:
152 classes:
153 - service.galera.slave.cluster
154 params:
155 mysql_cluster_role: slave
156 linux_system_codename: xenial
157 openstack_baremetal_node01:
158 params:
159 single_baremetal_address: ${_param:openstack_baremetal_node01_baremetal_address}
160 keepalived_openstack_baremetal_vip_priority: 100
161 ironic_api_type: 'deploy'
162 tenant_address: 10.1.0.110
163 external_address: 10.16.0.110