jsiebens / hashi-up

bootstrap HashiCorp Consul, Nomad, or Vault over SSH < 1 minute
MIT License
676 stars 54 forks source link

Issue when installing caused by sudo requiring password. #12

Closed RudolfDG closed 3 years ago

RudolfDG commented 3 years ago

hashi-up nomad install \ --ssh-target-addr $IP \ --ssh-target-user ubuntu \ --server [INFO] Uploading generated Nomad configuration ... [INFO] Installing Nomad ... sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper error received during installation: Process exited with status 1 I've generated an ssh key and added it to authorized keys on the remote server, but it seems to not be working. I tried to use a passwordless ssh key, but that didn't make a difference.

RudolfDG commented 3 years ago

Fixed by temporarily disabling sudo asking for password by editing /etc/sudoers on the server.

jsiebens commented 3 years ago

Hi @RudolfDG Thanks for trying hashi-up and reporting this. Your workaround will do the trick, but I'm willing to re-open this issue and try to add support for sudo password in hashi-up