Ubuntu 10.04.1 LTS с Vagrant 1.4.3 и Vagrant::Butcher 2.1.5.
Я получаю следующую ошибку в конце «vagrant up»:
...
[2014-03-17T22:50:56+00:00] INFO: Chef Run complete in 245.448117502 seconds
[2014-03-17T22:50:56+00:00] INFO: Running report handlers
[2014-03-17T22:50:56+00:00] INFO: Report handlers complete
[Butcher] Creating /home/testuser/vagrant_test/.vagrant/butcher
[Butcher] Failed to create /home/testuser/vagrant_test/.vagrant/butcher/DEV-35-51-client.pem: Vagrant::Errors::VagrantError - The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
cat /etc/chef/client.pem
Stdout from the command:
Stderr from the command:
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: no tty present and no askpass program specified
Sorry, try again.
sudo: 3 incorrect password attempts
Клиент Chef работает успешно, и все наши кулинарные книги установлены. Одним из них является кулинарная книга сообщества sudo, и я думаю, что мы удалили запись о том, что пользователю vagrant нужно выполнить cat, чтобы прочитать файл client.pem.
Кто-нибудь может сказать мне, что это может быть?
ОБНОВЛЕНИЕ:
1) Бродячий пользователь входит в группу "sudo":
$ grep sudo /etc/group
sudo:x:27:vagrant
2) Файл sudoers содержит запись, позволяющую группе «sudo» выполнять любую команду:
# This file is managed by Chef.
# Do NOT modify this file directly.
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# User privilege specification
root ALL=(ALL:ALL) ALL
nagios ALL=(ALL) NOPASSWD: /usr/local/nagios/libexec/
# Members of the group 'admin' may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
#includedir /etc/sudoers.d
sudo
имеет доступ к sudo, но не без пароля. Ответ @tmatilai кажется точным. - person cassianoleal   schedule 18.03.2014