diff options
| author | spmfox <spmfox@foxwd.com> | 2025-04-27 21:28:22 -0400 |
|---|---|---|
| committer | spmfox <spmfox@foxwd.com> | 2025-04-27 21:28:22 -0400 |
| commit | 88345d6b265a007483ee94932fdc724d7d3fd264 (patch) | |
| tree | aa7bf247ff4ca87e272e031d9bfcb106b085f34a /templates | |
| parent | de1d9dac9cd69d6e0a31d6b047103cbee00f55d6 (diff) | |
removing bastion cockpit, tweaking and commenting containerfile
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/bootcblade.containerfile.j2 | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/templates/bootcblade.containerfile.j2 b/templates/bootcblade.containerfile.j2 index 3a8a8f6..6815c66 100644 --- a/templates/bootcblade.containerfile.j2 +++ b/templates/bootcblade.containerfile.j2 @@ -4,24 +4,26 @@ ARG SKIP_ZFS={{ skip_zfs if skip_zfs is defined else 'False' }} ARG SKIP_KVM={{ skip_kvm if skip_kvm is defined else 'False' }} ARG SKIP_SHARES={{ skip_shares if skip_shares is defined else 'False' }} -# Create root homedir -RUN mkdir /var/roothome - -# Basic Tools -RUN dnf -y install git vim podman fish ansible wget dstat byobu smartmontools hdparm wireguard-tools NetworkManager-wifi rsync glances tree && \ +# Basic Configuration +RUN mkdir /var/roothome && \ +# System tools + dnf -y install firewalld git vim podman fish ansible wget dstat byobu smartmontools hdparm wireguard-tools NetworkManager-wifi rsync glances tree && \ +# btm dnf -y install `curl -s https://api.github.com/repos/ClementTsang/bottom/releases/latest | grep "browser_download" |grep -v musl |grep ".rpm" |awk -F '"' '{print $4}'` && \ - dnf -y install cockpit-bridge cockpit-podman cockpit-storaged cockpit-system cockpit-selinux cockpit-ostree cockpit-networkmanager && \ - dnf clean all - -# Allow sudo without password -RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wheel-passwordless-sudo - -# Firewall -RUN dnf -y install firewalld && \ +# Cockpit + dnf -y install cockpit-ws cockpit-bridge cockpit-podman cockpit-storaged cockpit-system cockpit-selinux cockpit-ostree cockpit-networkmanager cockpit-files && \ + dnf clean all && \ +# Enable services systemctl enable firewalld && \ + systemctl enable cockpit.socket && \ +# Disable and mask baked-in bootc services + systemctl disable bootc-fetch-apply-updates.timer && \ + systemctl mask bootc-fetch-apply-updates.service && \ +# Allow passwordless sudo + echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/wheel-passwordless-sudo && \ +# Configure firewall for cockpit and ssh access firewall-offline-cmd --add-service cockpit && \ - firewall-offline-cmd --add-service ssh && \ - dnf clean all + firewall-offline-cmd --add-service ssh # ZFS RUN if [ "$SKIP_ZFS" = "False" ]; then \ |
