summaryrefslogtreecommitdiff
path: root/dan
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-04-01 22:31:52 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-04-01 22:31:52 +0200
commit053192098a73d454199b4a73cc9de0eb90fd73c6 (patch)
tree829a31cb7b82ef7e20ddc06c86050aed6d415e83 /dan
parentmpv-headless: add simple ssh control interface (diff)
ele-companion-raspi: move to lan (mixer vlan is now tagged)
Diffstat (limited to 'dan')
-rw-r--r--dan/ele-companion-raspi.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/dan/ele-companion-raspi.yml b/dan/ele-companion-raspi.yml
index 83ff46e5..e8ab62e6 100644
--- a/dan/ele-companion-raspi.yml
+++ b/dan/ele-companion-raspi.yml
@@ -15,3 +15,21 @@
- role: kubernetes/base
- role: kubernetes/standalone/base
- role: streaming/companion
+ post_tasks:
+ - name: install vlan package
+ apt:
+ name: vlan
+ state: present
+
+ ## TODO: this should be moved to a generac interfaces role...
+ - name: add vlan config for mixer vlan
+ blockinfile:
+ path: /etc/network/interfaces
+ block: |
+
+ auto {{ network.primary.name }}.{{ network_zones.mixer.vlan }}
+ iface {{ network.primary.name }}.{{ network_zones.mixer.vlan }} inet static
+ up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/accept_ra
+ up echo 0 > /proc/sys/net/ipv6/conf/$IFACE/autoconf
+ address {{ network_zones.mixer.prefix | ansible.utils.ipaddr(network_zones.mixer.offsets[inventory_hostname]) | ansible.utils.ipaddr('address') }}
+ netmask {{ network_zones.mixer.prefix | ansible.utils.ipaddr(network_zones.mixer.offsets[inventory_hostname]) | ansible.utils.ipaddr('netmask') }}