summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-08-03 20:35:30 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-08-03 20:35:51 +0200
commit90ca36db8158de1376fd38b5e2a79456a1717002 (patch)
treead5766e4581a210e4aa6de4c1d2369096c54067a
parentfinalize ch-router config (diff)
added ch-sw1
-rw-r--r--chaos-at-home/ch-sw1.yml8
-rw-r--r--inventory/host_vars/ch-sw1.yml23
-rw-r--r--inventory/hosts.ini2
3 files changed, 32 insertions, 1 deletions
diff --git a/chaos-at-home/ch-sw1.yml b/chaos-at-home/ch-sw1.yml
new file mode 100644
index 00000000..0d86fa48
--- /dev/null
+++ b/chaos-at-home/ch-sw1.yml
@@ -0,0 +1,8 @@
+---
+- name: bootstrap
+ hosts: ch-sw1
+ gather_facts: no
+ roles:
+ - dellos6/bootstrap
+ - dellos6/base
+ - dellos6/layer2
diff --git a/inventory/host_vars/ch-sw1.yml b/inventory/host_vars/ch-sw1.yml
new file mode 100644
index 00000000..9ba68ed5
--- /dev/null
+++ b/inventory/host_vars/ch-sw1.yml
@@ -0,0 +1,23 @@
+---
+switch_interfaces_yaml: |
+ - spec: Te1/0/1
+ description: "sw0"
+ switchport_mode: trunk
+
+ - spec: Te1/0/2
+ description: "RFU"
+ switchport_mode: trunk
+
+ - spec: range Te1/0/3-4
+ vlan: {{ network_zones['lan'].vlan }}
+ - spec: range Gi1/0/5-16
+ vlan: {{ network_zones['lan'].vlan }}
+
+ - spec: range Gi1/0/17-22
+ vlan: {{ network_zones['iot'].vlan }}
+
+ - spec: range Gi1/0/23-27
+ vlan: {{ network_zones['svc'].vlan }}
+
+ - spec: Gi1/0/28
+ vlan: {{ network_zones['mgmt'].vlan }}
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index ac336af2..42a4434e 100644
--- a/inventory/hosts.ini
+++ b/inventory/hosts.ini
@@ -39,7 +39,7 @@ ansible_port=22
[chaos_at_home_switches]
ch-sw0 host_name=sw0 ansible_host=192.168.42.200
-ch-sw1 host_name=sw1
+ch-sw1 host_name=sw1 ansible_host=192.168.42.201
[chaos_at_home_ap]
ch-ap0 host_name=ap0