Finish router-home split
All checks were successful
ShellCheck / shellcheck (push) Successful in 20s

This commit is contained in:
Mathieu Strypsteen 2023-12-17 17:55:26 +01:00
parent 265c659e3e
commit 982cb4f7cc
Signed by: mathieu
GPG key ID: 782A42E461BC6824
9 changed files with 21 additions and 7 deletions

View file

@ -8,6 +8,8 @@ Host home
HostName home.strypsteen.com
Host home-gw
HostName home-gw.strypsteen.com
Host router
HostName 192.168.255.1
Host vps
HostName vps.strypsteen.com
Host *

View file

@ -4,7 +4,7 @@ After=podman-container.service
[Container]
Image=docker.io/gitea/act_runner
LogDriver=none
Volume=podman.volume:/run/podman:z
Volume=podman-run.volume:/run/podman:z
Volume=/var/lib/system-config/container-config/act-runner:/etc/act-runner:O
Volume=act-runner.volume:/data:U,Z
Tmpfs=/root/.cache

View file

@ -1,10 +1,12 @@
[Container]
Image=quay.io/containers/podman
SecurityLabelDisable=true
Unmask=/proc/sys
User=1000
AddDevice=/dev/net/tun
Exec=podman system service -t0 unix:///run/podman/podman.sock
Volume=podman.volume:/run/podman:U,z
Volume=podman-storage.volume:/home/podman/.local/share/containers:U,Z
Volume=podman-run.volume:/run/podman:U,z
AutoUpdate=registry
[Install]
WantedBy=default.target

11
ignition/router.bu Normal file
View file

@ -0,0 +1,11 @@
variant: fcos
version: 1.5.0
boot_device:
luks:
tpm2: true
discard: true
passwd:
users:
- name: root
ssh_authorized_keys_local:
- ssh/desktop-sk.pub

View file

@ -3,7 +3,5 @@ DNS=2620:fe::10#dns10.quad9.net 9.9.9.10#dns10.quad9.net
FallbackDNS=
DNSSEC=true
DNSOverTLS=true
DNSStubListenerExtra=192.168.255.1
DNSStubListenerExtra=192.168.254.1
DNSStubListenerExtra=192.168.253.1
DNSStubListenerExtra=192.168.252.1
DNSStubListenerExtra=0.0.0.0
DNSStubListenerExtra=::

View file

@ -1,5 +1,6 @@
#!/bin/sh
set -e
cp -R home/* /
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
sh setup-server.sh
systemd-tmpfiles --create

View file

@ -1,7 +1,7 @@
#!/bin/sh
set -e
cp -R server/* /
systemctl disable --now docker.socket rpm-ostree-countme.timer
systemctl disable --now auditd docker.socket rpm-ostree-countme.timer
systemctl enable --now podman-auto-update.timer
systemctl enable --global podman-auto-update.timer
useradd -M containers || true