working traefik

This commit is contained in:
Oliver
2025-08-30 09:53:31 +02:00
parent 9726dc0060
commit 86acea94b9
29 changed files with 378 additions and 81 deletions

View File

@@ -14,4 +14,4 @@ set_prod() {
export host_vars_dir="/app/host_vars/vault/"
echo "LIVE MODE ENABLED !!! "
}
clear

View File

@@ -14,7 +14,8 @@ RUN apk add --no-cache \
mc \
e2fsprogs \
screen \
rsync
rsync \
device-mapper
WORKDIR /root
@@ -30,7 +31,6 @@ RUN ssh-keygen -t rsa -b 4096 -f /root/.ssh/id_rsa -N "" && \
COPY rex /usr/bin/
COPY template /usr/bin/
COPY dpush /usr/bin/
COPY create_volume /usr/bin/
COPY mount_volume /usr/bin/

View File

@@ -9,23 +9,8 @@ Host dev
Port 2222
IdentityFile /app/host_vars/dev/dev
Host manchester
Hostname 192.168.9.20
User 4server
IdentityFile /app/host_vars/manchester/manchester
Host saopaulo
Hostname saopaulo
User ansible
IdentityFile /mnt/encrypted_volume/.ssh/saopaulo
Host mumbai
Hostname mumbai
User ansible
IdentityFile /mnt/encrypted_volume/.ssh/mumbai
Host london
Hostname london
User ansible
IdentityFile /mnt/encrypted_volume/.ssh/london
Host boston
Hostname boston
User ansible
IdentityFile /mnt/encrypted_volume/.ssh/boston

View File

@@ -4,5 +4,5 @@ cmd="$*"
echo "Running on hosts: $cmd"
pssh -h "$hosts_file" -t 0 "$cmd"
pssh -h /app/host_vars/hosts -t 0 "$cmd"

View File

@@ -55,7 +55,7 @@ done
# Move temporary file to final location with doas
ssh "$host" "doas mv '$remotetmp' '$remotefile'"
done < "$hosts_file"
done < /app/host_vars/hosts