summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-07-10 03:39:34 +0200
committerChristian Pointner <equinox@spreadspace.org>2022-07-10 03:39:34 +0200
commitb6fc606835209a9e5d7a33325a3d31ab1623eccc (patch)
tree6535a64fb7477f7f7b59268d0117961863d31c99
parentele-tsdatacop: base install (diff)
finalize ele-tsdatacop and install ele-hpws-mini1
-rw-r--r--dan/ele-hpws-mini1.yml48
-rw-r--r--inventory/group_vars/elevate-festival/vars.yml4
-rw-r--r--inventory/host_vars/ele-hpws-mini1.yml25
-rw-r--r--inventory/host_vars/ele-hpws-mini2.yml7
-rw-r--r--inventory/host_vars/ele-tsdatacop.yml2
5 files changed, 74 insertions, 12 deletions
diff --git a/dan/ele-hpws-mini1.yml b/dan/ele-hpws-mini1.yml
new file mode 100644
index 00000000..8bb1fc72
--- /dev/null
+++ b/dan/ele-hpws-mini1.yml
@@ -0,0 +1,48 @@
+---
+- name: Basic Setup
+ hosts: ele-hpws-mini1
+ roles:
+ - role: apt-repo/base
+ - role: core/base
+ - role: core/sshd/base
+ - role: core/zsh
+ - role: core/ntp
+ - role: core/cpu-microcode
+ - role: apt-repo/obs-studio
+ - role: apt-repo/spreadspace
+ - role: ws/base
+ - role: core/admin-users
+ post_tasks:
+ - name: install chromium start script
+ copy:
+ content: |
+ #!/bin/sh
+
+ SITE=$1
+ if [ -z "$SITE"]; then
+ SITE="https://remote.elev8.at/stream-ui/player.html#control={{ hostvars['ele-jitsi'].jitsi_meet_streamui.default_control_room }}&displayName={{ host_name }}"
+ fi
+ DISPLAY=:0 chromium "$SITE" --window-position=1920,0 --disable-infobars --use-fake-ui-for-media-stream --kiosk --temp-profile --start-maximized --enabled --enable-logging --autoplay-policy=no-user-gesture-required
+ dest: /usr/local/bin/jitsi-display.sh
+ mode: 0755
+
+ - name: install mpv play script
+ copy:
+ content: |
+ #!/bin/sh
+ exec mpv --geometry=1920x1080+1920+0 -fs --osd-level=0 "$@"
+ dest: /usr/local/bin/play-video.sh
+ mode: 0755
+
+ - name: create pulse daemon config directory
+ file:
+ path: /etc/pulse/daemon.conf.d
+ state: directory
+
+ - name: force pulseaudio sample rates to 48kHz
+ copy:
+ content: |
+ avoid-resampling = false
+ default-sample-rate = 48000
+ alternate-sample-rate = 48000
+ dest: /etc/pulse/daemon.conf.d/force-48k.conf
diff --git a/inventory/group_vars/elevate-festival/vars.yml b/inventory/group_vars/elevate-festival/vars.yml
index 7ecebbb8..d207a258 100644
--- a/inventory/group_vars/elevate-festival/vars.yml
+++ b/inventory/group_vars/elevate-festival/vars.yml
@@ -18,6 +18,7 @@ network_zones:
ele-dione: 204
ele-tsdatacop: 210
ele-hpws-maxi: 211
+ ele-hpws-mini1: 212
ele-mon: 222
ele-orpheum: 240
tricaster: 245
@@ -60,7 +61,7 @@ network_zones:
limit: 240
leasetime: 2h
offsets:
- ele-hpws-mini1: 241
+ ele-hpws-mini2: 241
ele-minidan: 242
equinox-t450s: 250
ele-dione: 253
@@ -281,6 +282,7 @@ network_zones:
ele-router-hmtsaal: 4 # x.x.x.x+4
ele-telesto: 6 #5 # x.x.x.x+5
ele-tsdatacop: 8 #6 # x.x.x.x+6
+ ele-hpws-mini1: 9 #7 # x.x.x.x+7
funkfeuer:
description: "funkfeuer access, subnet will be announced by olsr using HNA"
diff --git a/inventory/host_vars/ele-hpws-mini1.yml b/inventory/host_vars/ele-hpws-mini1.yml
index 17aa13bc..d5b9b51b 100644
--- a/inventory/host_vars/ele-hpws-mini1.yml
+++ b/inventory/host_vars/ele-hpws-mini1.yml
@@ -11,8 +11,6 @@ debian_preseed_install_tasks:
- xubuntu-desktop
-install_playbook: ele-emcplayer
-
install:
efi: yes
disks:
@@ -39,14 +37,16 @@ install:
- "consoleblank=0"
network:
- nameservers: "{{ network_zones.guest.dns }}"
+ nameservers: "{{ network_zones.cc_hmtsaal.dns }}"
domain: "{{ host_domain }}"
primary: &_network_primary_
name: eno1
- address: "{{ network_zones.guest.prefix | ipaddr(network_zones.guest.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
- gateway: "{{ network_zones.guest.gateway }}"
+ address: "{{ network_zones.cc_hmtsaal.prefix | ipaddr(network_zones.cc_hmtsaal.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ gateway: "{{ network_zones.cc_hmtsaal.gateway }}"
interfaces:
- *_network_primary_
+ - name: eno1.18
+ address: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
apt_repo_components:
@@ -57,12 +57,21 @@ apt_repo_components:
base_modules_blacklist: "{{ base_modules_blacklist_all_but_sound }}"
+ssh_users_root:
+ - equinox
+ - datacop
+
admin_users_host:
- equinox
ws_base_lightdm_defaults:
- autologin-user: player
+ autologin-user: elevate
autologin-user-timeout: 0
-ws_base_extra_packages:
- - mpv
+ws_base_xrandr_setup_script: |
+ #!/bin/bash
+
+ xrandr --output DP-1 --mode 1920x1080 --rate 50 --primary
+ xrandr --output HDMI-2 --mode 1920x1080 --rate 25 --right-of DP-1
+
+ exit 0
diff --git a/inventory/host_vars/ele-hpws-mini2.yml b/inventory/host_vars/ele-hpws-mini2.yml
index b672a9b2..d63dec3e 100644
--- a/inventory/host_vars/ele-hpws-mini2.yml
+++ b/inventory/host_vars/ele-hpws-mini2.yml
@@ -44,6 +44,8 @@ network:
domain: "{{ host_domain }}"
primary: &_network_primary_
name: eno1
+ address: "{{ network_zones.guest.prefix | ipaddr(network_zones.guest.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
+ gateway: "{{ network_zones.guest.gateway }}"
interfaces:
- *_network_primary_
@@ -59,5 +61,6 @@ base_modules_blacklist: "{{ base_modules_blacklist_all_but_sound }}"
admin_users_host:
- equinox
-ws_base_extra_packages:
- - mpv
+ws_base_lightdm_defaults:
+ autologin-user: player
+ autologin-user-timeout: 0
diff --git a/inventory/host_vars/ele-tsdatacop.yml b/inventory/host_vars/ele-tsdatacop.yml
index 412b0af3..76c8e705 100644
--- a/inventory/host_vars/ele-tsdatacop.yml
+++ b/inventory/host_vars/ele-tsdatacop.yml
@@ -69,7 +69,7 @@ ws_base_extra_packages:
- obs-studio
ws_base_lightdm_defaults:
- autologin-user: operator
+ autologin-user: elevate
autologin-user-timeout: 0