rename ass
This commit is contained in:
@@ -12,3 +12,4 @@ set_prod() {
|
||||
export HOSTS_FILE="/app/hosts.all"
|
||||
echo "HOSTS_FILE set to: $HOSTS_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/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
9
alpine/hosts
Normal 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
|
||||
Reference in New Issue
Block a user