Use pass for secret management

This commit is contained in:
Roberto Alsina 2022-07-19 05:49:10 -03:00
parent 881b698966
commit 5163598319

View File

@ -21,7 +21,9 @@ sudo ignite vm start $NAME
IP=$(sudo ignite vm ls | grep faas | cut -f9 -d\ ) IP=$(sudo ignite vm ls | grep faas | cut -f9 -d\ )
waitport $IP 22 waitport $IP 22
scp -o "StrictHostKeyChecking no" setup.sh root@$IP: ssh -o "StrictHostKeyChecking no" root@$IP mkdir -p /var/lib/faasd/secrets
ssh root@$IP "echo $(pass faas.ralsina.me) > /var/lib/faasd/secrets/basic-auth-password"
scp setup.sh root@$IP:
ssh root@$IP sh setup.sh ssh root@$IP sh setup.sh
# Login # Login