Open arimourao opened 7 years ago
Ok, I solved this one. You have to ssh into the remote server and include your username in the sudoers that don't have to type passwords. This should be mentionated in the docs, it would give people a LOT less headaches. More info in this thread:
I still have one doubt. I was looking for a way to install all dependencies listed in my puphpet script into my remote server. But I only got my local vagrant folder rsynced to a /vagrant folder. Is this the expected result?
Glad you solved the earlier issue, and yes it might be good to mention this in the docs, if that was not implicitly clear.
Regarding the puphpet scripts: if they are in the same directory as the Vagrantfile they should definitely be synced to /vagrant on the remote host.
If they are outside of that directory you could add another synced folder definition to also sync them: https://www.vagrantup.com/docs/synced-folders/rsync.html
Am 09.12.2016 8:13 nachm. schrieb "Ari Mourao" notifications@github.com:
I still have one doubt. I was looking for a way to install all dependencies listed in my puphpet script into my remote server. But I only got my local vagrant folder rsynced to a /vagrant folder. Is this the expected result?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tknerr/vagrant-managed-servers/issues/69#issuecomment-266096631, or mute the thread https://github.com/notifications/unsubscribe-auth/AAWUsHsui5szgT9EMjtAuzeUiBsruf76ks5rGag9gaJpZM4LJPlS .
I'm trying to provision a server with my puphpet configuration. I can link with my remote server but then I get the following error when running
vagrant provision
Bringing machine 'default' up with 'managed' provider... ==> default: The managed server is already linked. ari@debian:~/Documents/vagrant_provision_dev_server$ vagrant provision ==> default: Rsyncing folder: /home/ari/Documents/vagrant_provision_dev_server/ => /vagrant The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed!
mkdir -p /vagrant
Stdout from the command:
Stderr from the command:
sudo: nenhum tty presente e nenhum programa de askpass especificado
Here is my Vagrantfile:
I can ssh normally into the server with this same user and with this same id_rsa in terminal.