summaryrefslogtreecommitdiff
path: root/inventory/group_vars/chaos-at-home-switches
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-09-06 23:10:31 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-09-06 23:11:27 +0200
commit0e45778cb9e465d90899b1c231e7b48204a45c54 (patch)
tree69c49d14845d9476bd319c06b012a052067835cc /inventory/group_vars/chaos-at-home-switches
parentch-sw1: switch config update (diff)
revert to sane group-names... step 1 of n
Diffstat (limited to 'inventory/group_vars/chaos-at-home-switches')
-rw-r--r--inventory/group_vars/chaos-at-home-switches/main.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/inventory/group_vars/chaos-at-home-switches/main.yml b/inventory/group_vars/chaos-at-home-switches/main.yml
new file mode 100644
index 00000000..fb72c9b1
--- /dev/null
+++ b/inventory/group_vars/chaos-at-home-switches/main.yml
@@ -0,0 +1,15 @@
+---
+switch_mgmt_zone: "{{ network_zones.mgmt }}"
+switch_mgmt_interface: "Gi1/0/28"
+
+switch_vlans: "{{ switch_vlans_yaml | from_yaml }}"
+switch_vlans_yaml: |
+ {% for zone_name in network_zones.keys() %}
+ - name: "{{ zone_name }}"
+ id: "{{ network_zones[zone_name].vlan }}"
+ {% endfor %}
+
+switch_interfaces: "{{ switch_interfaces_yaml | from_yaml }}"
+switch_interfaces_yaml: |
+ - spec: range Gi1/0/1-27
+ vlan: {{ network_zones['lan'].vlan }}