blob: 66ff1f0f11d6333e2a9fa2fcfffd6b64eeadeac5 [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>>
Oleg Grigorov6cd8e122017-08-29 15:02:44 +0300105 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>>
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200115 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>>
Oleg Grigorovb737db12017-08-23 14:45:56 +0300136 openstack_baremetal_node01_baremetal_address:
137 value_template: <<node_baremetal_ip>>
Vasyl Saienko71547e62017-07-14 09:27:04 +0300138 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
Jiri Broulikd3a38672017-08-22 14:15:09 +0200157 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
Oleg Grigorovb737db12017-08-23 14:45:56 +0300163 external_address: 10.16.0.110