Open ernlel opened 7 years ago
:+1:
Thanks for the PR!
This is a nice addition, but I'm not a big fan of the "ask:"
prefix (the convention is ssh user:password@server.com
, so "ask"
is rather user than a special Supfile sequence). If we could detect if the remote is asking for password based on stdout fd, that'd be much better. Also, making sup accept one password for multiple hosts would be nice.
I'm thinking of this instead:
networks:
production:
hosts:
- user:$PASSWORD@1.1.1.1:22
sup -e PASSWORD=$(echo "Enter your password:"; read i; echo $i) production deploy
networks:
production:
env:
PASSWORD: $(cat ~/.passwords/first)
hosts:
- user:$PASSWORD@1.1.1.1:22
3.
networks:
production:
env:
PASSWORD: $(echo "Enter your password:"; read i; echo $i)
hosts:
- user:$PASSWORD@1.1.1.1:22
Ability to mark host with
ask:
marker and will be prompted to enter password for that host.It will prompt:
Enter Password for user@1.1.1.1:22: