Browse Source

Add default configuration for switch interfaces

Mark Goddard 2 years ago
parent
commit
680cc291a1

+ 20
- 0
etc/kayobe/inventory/group_vars/switches/interfaces View File

@@ -0,0 +1,20 @@
1
+---
2
+# Switch configuration.
3
+
4
+###############################################################################
5
+# Interface configuration.
6
+
7
+# Interface configuration. Dict mapping switch interface names to configuration
8
+# dicts. Each dict contains a description item and the name of a network which
9
+# is used to lookup a variable containing interface config for ports on that
10
+# network (switch_interface_config_<network>). Each dict can also have a 
11
+# 'config' item which should contain a list of additional per-interface
12
+# configuration.
13
+# Generally this should be configured on a per-switch basis via a host_vars
14
+# file.
15
+switch_interface_config: {}
16
+
17
+# Example of an interface configuration variable for a network, referenced by
18
+# the 'network' item of an interface in 'switch_interface_config'.
19
+#switch_interface_config_example_net:
20
+#  - switchport access vlan 42

+ 17
- 0
etc/kayobe/inventory/groups View File

@@ -11,3 +11,20 @@
11 11
 # Hosts in this group will have Docker installed.
12 12
 seed
13 13
 controllers
14
+
15
+###############################################################################
16
+# Networking groups.
17
+
18
+[mgmt-switches]
19
+# Empty group to provide declaration of mgmt-switches group.
20
+
21
+[ctl-switches]
22
+# Empty group to provide declaration of ctl-switches group.
23
+
24
+[hs-switches]
25
+# Empty group to provide declaration of hs-switches group.
26
+
27
+[switches:children]
28
+mgmt-switches
29
+ctl-switches
30
+hs-switches

+ 9
- 0
etc/kayobe/inventory/hosts.example View File

@@ -17,3 +17,12 @@ localhost ansible_connection=local
17 17
 [controllers]
18 18
 # Add controller nodes here if required. These hosts will provide the
19 19
 # OpenStack overcloud.
20
+
21
+[mgmt-switches]
22
+# Add management network switches here if required.
23
+
24
+[ctl-switches]
25
+# Add control and provisioning switches here if required.
26
+
27
+[hs-switches]
28
+# Add high speed switches here if required.

Loading…
Cancel
Save