rename ass

This commit is contained in:
Oliver
2025-08-10 17:43:04 -03:00
parent 73d9587e1d
commit 4c93fa132f
20 changed files with 447 additions and 29 deletions

View File

@@ -12,3 +12,4 @@ set_prod() {
export HOSTS_FILE="/app/hosts.all"
echo "HOSTS_FILE set to: $HOSTS_FILE"
}

View File

@@ -28,7 +28,7 @@ RUN ssh-keygen -t rsa -b 4096 -f /root/.ssh/id_rsa -N "" && \
chmod 600 /root/.ssh/id_rsa && \
chmod 600 /root/.ssh/config
COPY ass /usr/bin/
COPY rex /usr/bin/
COPY template /usr/bin/
COPY dpush /usr/bin/
COPY create_volume /usr/bin/

View File

@@ -5,21 +5,21 @@ Host dev
Host saopaulo
Hostname 192.168.9.11
Hostname saopaulo
User ansible
IdentityFile /mnt/encrypted_volume/.ssh/saopaulo
Host mumbai
Hostname 192.168.9.17
Hostname mumbai
User ansible
IdentityFile /mnt/encrypted_volume/.ssh/mumbai
Host london
Hostname 192.168.9.15
Hostname london
User ansible
IdentityFile /mnt/encrypted_volume/.ssh/london
Host boston
Hostname 192.168.9.16
Hostname boston
User ansible
IdentityFile /mnt/encrypted_volume/.ssh/boston

View File

@@ -10,7 +10,8 @@ fi
FILE="/data/$1"
MAPPER_NAME="encrypted_volume"
MOUNT_POINT="/mnt/${MAPPER_NAME}"
dd if=/dev/zero of="$FILE" bs=1M count=100
dd if=/dev/zero of="$FILE" bs=1M count=10
echo "Setting up LUKS on $FILE..."
cryptsetup luksFormat "$FILE"

9
alpine/hosts Normal file
View File

@@ -0,0 +1,9 @@
127.0.0.1 dev
::1 dev
192.168.111.209 dev
192.168.9.11 saopaulo
192.168.9.17 mumbai
192.168.9.15 london
192.168.9.16 boston