working traefik
This commit is contained in:
@@ -14,4 +14,4 @@ set_prod() {
|
||||
export host_vars_dir="/app/host_vars/vault/"
|
||||
echo "LIVE MODE ENABLED !!! "
|
||||
}
|
||||
|
||||
clear
|
||||
|
||||
@@ -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/
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user