summaryrefslogtreecommitdiff
path: root/dan/ele-hyperion.yml
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-02-23 02:09:45 +0100
committerChristian Pointner <equinox@spreadspace.org>2023-02-23 02:09:45 +0100
commit7d877f7b6873a5de9a26c8effb4ed40d18274864 (patch)
tree3c8b94a6495f183dd3d8056af78939e55aba06d8 /dan/ele-hyperion.yml
parentinfobeamer config for e23 (diff)
add ele-hyperion
Diffstat (limited to 'dan/ele-hyperion.yml')
-rw-r--r--dan/ele-hyperion.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/dan/ele-hyperion.yml b/dan/ele-hyperion.yml
new file mode 100644
index 00000000..7b6e73f7
--- /dev/null
+++ b/dan/ele-hyperion.yml
@@ -0,0 +1,42 @@
+---
+- name: Basic Setup
+ hosts: ele-hyperion
+ roles:
+ - role: apt-repo/base
+ - role: core/base
+ - role: core/sshd/base
+ - role: core/zsh
+ - role: core/ntp
+ - role: core/cpu-microcode
+
+- name: Payload Setup
+ hosts: ele-hyperion
+ roles:
+ - role: apt-repo/obs-studio
+ - role: apt-repo/spreadspace
+ - role: ws/base
+ - role: core/admin-users
+ - role: streaming/blackmagic/desktopvideo
+ - role: streaming/blackmagic/mediaexpress
+ post_tasks:
+ ## TODO: move to network/netplan when this is done
+ - name: install vlan interfaces
+ loop: "{{ network.vlans | dict2items }}"
+ loop_control:
+ label: "{{ item.key }} ({{ item.value | join(',') }})"
+ copy:
+ dest: "/etc/netplan/20-{{ item.key }}.yaml"
+ content: |
+ network:
+ vlans:
+ {% for vlan in item.value %}
+ {% set vlan_ifname = item.key + '.' + (vlan | string) %}
+ {% set vlan_iface = (network.interfaces | selectattr('name', 'eq', vlan_ifname)) %}
+ {{ vlan_ifname }}:
+ id: {{ vlan }}
+ link: {{ item.key }}
+ {% if vlan_iface %}
+ addresses:
+ - {{ (vlan_iface | first).address }}
+ {% endif %}
+ {% endfor %}