Added configuration for Fedora-HomeAssistant

This commit is contained in:
2025-01-09 03:05:07 +01:00
parent dc012921c4
commit 3f16f057de
5 changed files with 93 additions and 3 deletions

View File

@@ -60,6 +60,12 @@ files:
download_updates = yes
upgrade_type = security
#FileForHass
- path: /opt/Setup
generator: copy
source: CT-Files/hass
variants:
- hass
packages:
manager: dnf
@@ -86,6 +92,7 @@ packages:
- policycoreutils
- procps-ng
- systemd-udev
- systemd-networkd
- which
- dnf-automatic
action: install
@@ -96,6 +103,34 @@ packages:
- sssd-client
action: remove
#PKGS for Hass
- packages:
- git
- python3
- python3-virtualenv
- python3-pip
- python3-devel
- libffi-devel
- openssl-devel
- nmap
- glibc
- glibc-devel
- gcc
- gcc-c++
- make
- patch
- binutils
- turbojpeg
#- mariadb
- mariadb-connector-c-devel
- libudev-devel
- ffmpeg
- unzip
#- nano
action: install
variants:
- hass
actions:
- trigger: post-unpack
action: |-
@@ -109,6 +144,9 @@ actions:
# Let dnf find the fastest mirror
echo fastestmirror=True >> /etc/dnf/dnf.conf
# skip weak dependencies
echo install_weak_deps=False >> /etc/dnf/dnf.conf
#ProxyCacheSetting
echo '#CacheServer not set' >> /etc/dnf/dnf.conf
@@ -140,8 +178,6 @@ actions:
#!/bin/sh
umount -l /etc/resolv.conf || true
rm /etc/resolv.conf
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
systemctl enable systemd-resolved
cp -R /etc/skel/.bash* /root/
systemctl enable dnf-automatic.timer
@@ -154,4 +190,13 @@ actions:
# Restore repos
for repo in $(ls /etc/yum.repos.d/*.bak); do
mv "${repo}" ${repo%.*}
done
done
#Run provided init script
- trigger: post-files
action: |-
#!/bin/sh
bash /opt/Setup/Scripts/Init.sh || exit 1
rm /opt/Setup/Scripts/Init.sh
variants:
- hass