diff options
author | Christian Pointner <equinox@spreadspace.org> | 2022-09-12 21:59:10 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2022-09-12 21:59:10 +0200 |
commit | be7e9da811a53141eb122ddfae9282ac9ae50d5c (patch) | |
tree | 7ffe8bd503d0a5d2b5f8648df838837e44f5d2fd | |
parent | kodi/standalone: fix name for polkit config files (diff) |
new kodi deployment ch-mcbr
-rw-r--r-- | chaos-at-home/ch-mcbr.yml | 27 | ||||
-rw-r--r-- | inventory/group_vars/chaos-at-home/network.yml | 5 | ||||
-rw-r--r-- | inventory/host_vars/ch-mc-pi.yml | 13 | ||||
-rw-r--r-- | inventory/host_vars/ch-mcbr.yml | 47 | ||||
-rw-r--r-- | inventory/hosts.ini | 3 | ||||
-rw-r--r-- | roles/kodi/standalone/tasks/main.yml | 23 |
6 files changed, 95 insertions, 23 deletions
diff --git a/chaos-at-home/ch-mcbr.yml b/chaos-at-home/ch-mcbr.yml new file mode 100644 index 00000000..e2227b41 --- /dev/null +++ b/chaos-at-home/ch-mcbr.yml @@ -0,0 +1,27 @@ +--- +- name: Basic Setup + hosts: ch-mcbr + 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: ch-mcbr + roles: + - role: kodi/standalone + ## TODO: + ## - https://kodi.wiki/view/Kore_Manual + ## - https://kodi.wiki/view/MySQL/Setting_up_Kodi (need to wait for NFSv4 support ...) + post_tasks: + ## Kodi only supports NFSv3, however it will probably work with Kodi 20+ (https://github.com/xbmc/xbmc/pull/21659) + - name: mount fileserver volumes + mount: + src: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets['ch-prometheus']) | ansible.utils.ipaddr('address') }}:/" + path: /srv/files + fstype: nfs4 + opts: nodev,x-systemd.automount,nofail,ro + state: mounted diff --git a/inventory/group_vars/chaos-at-home/network.yml b/inventory/group_vars/chaos-at-home/network.yml index 90e05149..c6279ed6 100644 --- a/inventory/group_vars/chaos-at-home/network.yml +++ b/inventory/group_vars/chaos-at-home/network.yml @@ -13,8 +13,9 @@ network_zones: limit: 199 offsets: ch-equinox-ws: 1 - ch-mc: 10 - ch-mc-pi: 11 + ch-mc: 10 ### legacy + ch-mclr: 10 + ch-mcbr: 11 ch-telesto: 20 ch-calypso: 21 ch-thetys: 22 diff --git a/inventory/host_vars/ch-mc-pi.yml b/inventory/host_vars/ch-mc-pi.yml deleted file mode 100644 index 9f46a600..00000000 --- a/inventory/host_vars/ch-mc-pi.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -#raspios_variant: desktop -raspios_arch: arm64 - -network: - nameservers: "{{ network_zones.lan.dns }}" - domain: "{{ host_domain }}" - primary: &_network_primary_ - name: eth0 - address: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets[inventory_hostname]) }}" - gateway: "{{ network_zones.lan.gateway }}" - interfaces: - - *_network_primary_ diff --git a/inventory/host_vars/ch-mcbr.yml b/inventory/host_vars/ch-mcbr.yml new file mode 100644 index 00000000..1ac236c8 --- /dev/null +++ b/inventory/host_vars/ch-mcbr.yml @@ -0,0 +1,47 @@ +--- +install: + efi: no + disks: + primary: /dev/disk/by-id/ata-OCZ-VERTEX2_OCZ-B7P98I86F4PC14I7 + system_lvm: + volumes: + - name: root + size: 30G + filesystem: ext4 + mountpoint: / + - name: var+log + size: 768M + filesystem: ext4 + mountpoint: /var/log + mount_options: + - noatime + - nodev + - noexec + +network: + nameservers: "{{ network_zones.lan.dns }}" + domain: "{{ host_domain }}" + primary: &_network_primary_ + name: eno1 + address: "{{ network_zones.lan.prefix | ansible.utils.ipaddr(network_zones.lan.offsets[inventory_hostname]) }}" + gateway: "{{ network_zones.lan.gateway }}" + interfaces: + - *_network_primary_ + + +base_modules_blacklist: "{{ base_modules_blacklist_none }}" + +apt_repo_components: + - main + - contrib + - non-free + + +kodi_standalone_support_packages_extra: + - i965-va-driver-shaders + +kodi_standalone_use_backports: yes +kodi_standalone_kodi_packages_extra: + - kodi-repository-kodi + - kodi-inputstream-adaptive + - kodi-inputstream-rtmp diff --git a/inventory/hosts.ini b/inventory/hosts.ini index d1143a7d..3e4288dc 100644 --- a/inventory/hosts.ini +++ b/inventory/hosts.ini @@ -37,7 +37,8 @@ ch-mon host_name=mon ch-omd host_name=omd ch-epimetheus host_name=epimetheus ch-mc host_name=mc -ch-mc-pi host_name=mc-pi +ch-mclr host_name=mclr +ch-mcbr host_name=mcbr ch-atlas host_name=atlas ch-pan host_name=pan ch-keyserver host_name=keyserver diff --git a/roles/kodi/standalone/tasks/main.yml b/roles/kodi/standalone/tasks/main.yml index 87d76e13..4ccf5822 100644 --- a/roles/kodi/standalone/tasks/main.yml +++ b/roles/kodi/standalone/tasks/main.yml @@ -8,6 +8,8 @@ - fonts-noto - fonts-roboto - fonts-roboto-fontface + - nfs-common + - cifs-utils state: present notify: restart kodi @@ -18,14 +20,21 @@ state: present notify: restart kodi -- name: pin kodi packages to use backports +- name: use kodi packages from backports when: kodi_standalone_use_backports - copy: - content: | - Package: src:kodi {{ kodi_standalone_kodi_packages_extra | join(' ') }} - Pin: release n={{ ansible_distribution_release }}-backports - Pin-Priority: 990 - dest: /etc/apt/preferences.d/kodi-backports.pref + block: + - name: add backports repo + include_role: + name: apt-repo/backports + + - name: pin kodi packages to use backports + when: kodi_standalone_use_backports + copy: + content: | + Package: src:kodi {{ kodi_standalone_kodi_packages_extra | join(' ') }} + Pin: release n={{ ansible_distribution_release }}-backports + Pin-Priority: 990 + dest: /etc/apt/preferences.d/kodi-backports.pref - name: install kodi packages apt: |