blob: fe44865170c6e09ec9c176288f60aed6435e7050 [file] [log] [blame]
Jiri Broulikeaae24f2017-04-21 16:59:29 +02001classes:
2- service.git.client
3- system.linux.system.single
4- system.linux.system.repo.mcp.salt
Petr Jediný90e83ef2017-06-28 16:33:04 +02005- system.linux.system.repo.mcp.openstack
Jiri Broulikeaae24f2017-04-21 16:59:29 +02006- system.openssh.client.lab
7- system.salt.master.api
8- system.salt.master.pkg
9- system.reclass.storage.salt
10- system.salt.minion.ca.salt_master
11- system.salt.minion.cert.proxy
12- system.sphinx.server.doc.reclass
Petr Jediný90e83ef2017-06-28 16:33:04 +020013- system.keystone.client.core
Jiri Broulikeaae24f2017-04-21 16:59:29 +020014- system.keystone.client.service.aodh
15- system.keystone.client.service.ceilometer
Mykyta Karpin7bdd53f2017-06-07 18:09:08 +030016- system.keystone.client.service.designate
Petr Jediný90e83ef2017-06-28 16:33:04 +020017- system.keystone.client.service.cinder
18- system.keystone.client.service.cinder2
19- system.keystone.client.service.cinder3
20- system.keystone.client.service.glance
21- system.keystone.client.service.glare
22- system.keystone.client.service.heat
23- system.keystone.client.service.heat-cfn
24- system.keystone.client.service.keystone
25- system.keystone.client.service.neutron
26- system.keystone.client.service.nova-ec2
27- system.keystone.client.service.nova21
28- system.keystone.client.service.nova-placement
Jiri Broulikeaae24f2017-04-21 16:59:29 +020029- system.mysql.client.single
30- system.reclass.storage.system.openstack_control_cluster
31- system.reclass.storage.system.opencontrail_control_cluster
Jiri Broulik432ae9c2017-08-17 10:24:23 +020032- system.reclass.storage.system.stacklightv2_server_cluster
Jiri Broulik26104ab2017-08-17 16:40:33 +020033- system.reclass.storage.system.openstack_compute_multi
34- system.reclass.storage.system.openstack_dashboard_single
35- system.reclass.storage.system.openstack_proxy_single
Jiri Broulikeaae24f2017-04-21 16:59:29 +020036- cluster.virtual-mcp11-contrail-nfv.openstack.proxy
37- cluster.virtual-mcp11-contrail-nfv.stacklight.proxy
38- cluster.virtual-mcp11-contrail-nfv
39parameters:
40 _param:
41 reclass_data_repository: "https://gerrit.mcp.mirantis.net/salt-models/mcp-virtual-lab"
42 reclass_data_revision: master
43 reclass_config_master: 192.168.10.100
44 single_address: 172.16.10.100
45 salt_master_host: 127.0.0.1
46 salt_master_base_environment: prd
47 salt_minion_ca_host: ${linux:network:fqdn}
48 salt_api_password_hash: "$6$sGnRlxGf$al5jMCetLP.vfI/fTl3Z0N7Za1aeiexL487jAtyRABVfT3NlwZxQGVhO7S1N8OwS/34VHYwZQA8lkXwKMN/GS1"
49 linux:
50 network:
51 interface:
52 ens4:
53 enabled: true
54 type: eth
55 proto: static
56 address: ${_param:single_address}
57 netmask: 255.255.255.0
58 nginx:
59 server:
60 site:
61 nginx_proxy_openstack_web:
62 proxy:
63 host: prx
64 nginx_proxy_openstack_api_heat_cfn:
65 enabled: false
Jiri Broulik432ae9c2017-08-17 10:24:23 +020066 salt:
67 master:
68 reactor:
69 reclass/minion/classify:
70 - salt://reclass/reactor/node_register.sls
Jiri Broulikeaae24f2017-04-21 16:59:29 +020071 reclass:
72 storage:
Jiri Broulik432ae9c2017-08-17 10:24:23 +020073 class_mapping:
74 common_node:
75 expression: all
76 node_param:
77 single_address:
78 value_template: <<node_control_ip>>
79 linux_system_codename:
80 value_template: <<node_os>>
81 salt_master_host:
82 value_template: <<node_master_ip>>
83 infra_config:
84 expression: <<node_hostname>>__startswith__cfg
85 cluster_param:
86 infra_config_address:
87 value_template: <<node_control_ip>>
88 infra_config_deploy_address:
89 value_template: <<node_deploy_ip>>
90 cluster_domain:
91 value_template: <<node_domain>>
92 openstack_control01:
93 expression: <<node_hostname>>__equals__ctl01
94 cluster_param:
95 openstack_control_node01_address:
96 value_template: <<node_control_ip>>
97 openstack_control02:
98 expression: <<node_hostname>>__equals__ctl02
99 cluster_param:
100 openstack_control_node02_address:
101 value_template: <<node_control_ip>>
102 openstack_control03:
103 expression: <<node_hostname>>__equals__ctl03
104 cluster_param:
105 openstack_control_node03_address:
106 value_template: <<node_control_ip>>
107 opencontrail_control01:
108 expression: <<node_hostname>>__equals__ntw01
109 cluster_param:
110 opencontrail_control_node01_address:
111 value_template: <<node_control_ip>>
112 opencontrail_control02:
113 expression: <<node_hostname>>__equals__ntw02
114 cluster_param:
115 opencontrail_control_node02_address:
116 value_template: <<node_control_ip>>
117 opencontrail_control03:
118 expression: <<node_hostname>>__equals__ntw03
119 cluster_param:
120 opencontrail_control_node03_address:
121 value_template: <<node_control_ip>>
122 openstack_compute:
123 expression: <<node_hostname>>__startswith__cmp
124 node_class:
125 value_template:
126 - cluster.<<node_cluster>>.openstack.compute
127 node_param:
128 tenant_address:
129 value_template: <<node_tenant_ip>>
130 external_address:
131 value_template: <<node_external_ip>>
132 stacklight_monitor_node01:
133 expression: <<node_hostname>>__equals__mon01
134 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200135 stacklight_monitor_node01_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200136 value_template: <<node_control_ip>>
137 stacklight_monitor_node02:
138 expression: <<node_hostname>>__equals__mon02
139 cluster_param:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200140 stacklight_monitor_node02_address:
Jiri Broulik432ae9c2017-08-17 10:24:23 +0200141 value_template: <<node_control_ip>>
142 stacklight_monitor_node03:
143 expression: <<node_hostname>>__equals__mon03
144 cluster_param:
145 stacklight_monitor_node03_address:
146 value_template: <<node_control_ip>>
147 openstack_dashboard:
148 expression: <<node_hostname>>__startswith__prx
149 node_class:
150 value_template:
151 - cluster.<<node_cluster>>.openstack.dashboard
152 - cluster.<<node_cluster>>.openstack.proxy
153 cluster_param:
154 openstack_proxy_node01_address:
155 value_template: <<node_control_ip>>
Jiri Broulikeaae24f2017-04-21 16:59:29 +0200156 node:
157 openstack_control_node01:
158 classes:
159 - service.galera.master.cluster
160 params:
161 mysql_cluster_role: master
162 linux_system_codename: xenial
163 openstack_control_node02:
164 classes:
165 - service.galera.slave.cluster
166 params:
167 mysql_cluster_role: slave
168 linux_system_codename: xenial
169 openstack_control_node03:
170 classes:
171 - service.galera.slave.cluster
172 params:
173 mysql_cluster_role: slave
174 linux_system_codename: xenial
Jiri Broulikeaae24f2017-04-21 16:59:29 +0200175 stacklight_server_node01:
176 classes:
177 - system.influxdb.server.single
178 - system.influxdb.database.stacklight
179 openstack_compute_node01:
Jiri Broulikeaae24f2017-04-21 16:59:29 +0200180 params:
Jiri Broulik967348c2017-06-28 15:42:54 +0200181 compute_vrouter_dpdk_mac_address: 02:9e:de:d3:5b:ce #must be manually changed to mac of ens4
Jiri Broulikeaae24f2017-04-21 16:59:29 +0200182 compute_vrouter_dpdk_pci: "'0000:00:04.0'"
183 openstack_compute_node02:
Jiri Broulikeaae24f2017-04-21 16:59:29 +0200184 params:
Jiri Broulik967348c2017-06-28 15:42:54 +0200185 compute_vrouter_dpdk_mac_address: 02:de:aa:e6:12:81 #must be manually changed to mac of ens4
Jiri Broulikd3a38672017-08-22 14:15:09 +0200186 compute_vrouter_dpdk_pci: "'0000:00:04.0'"
187 openstack_proxy_node01:
188 classes:
Jiri Broulikde059892017-08-22 19:05:50 +0200189 - cluster.virtual-mcp11-contrail-nfv.openstack.proxy
190 params:
Olivier Bourdon1ad864b2017-09-06 14:09:15 +0200191 linux_system_codename: xenial