hashbangcode / vlad

Vlad - Vagrant LAMP Ansible Drupal
173 stars 53 forks source link

SSH keys not syncing #237

Closed xaviemirmon closed 9 years ago

xaviemirmon commented 9 years ago

I have the added the

use_host_id: true

to my vlad_local_settings.yml file yet my id_rsa isn't being synced. I can SSH from my local but when I go into my vagrant box I can't. It appears that for some reason the keys aren't syncing. Any ideas on this?

dixhuit commented 9 years ago

Hi Xavier. What version of Vlad are you running? There was a bug a couple versions back that interfered with this (current master should be fine).

Otherwise, can you delete (or move) your ansible.log file, replicate the issue and then share the fresh log with us via pastebin or similar?

xaviemirmon commented 9 years ago

Hi Dan,

Here's the ansible log file. http://pastebin.com/raw.php?i=dCipUgmB Issue is still happening and I am on the latest dev branch.

dixhuit commented 9 years ago

Thanks Xavier.

Here's your issue:

2015-06-24 09:39:51,588 p=28086 u=me |  TASK: [local actions | check that ~/.ssh/config exists on host machine] ******* 
2015-06-24 09:39:51,727 p=28086 u=me |  failed: [192.168.55.52 -> 127.0.0.1] => {"changed": false, "failed": true, "failed_when_result": true, "stat": {"exists": false}}
2015-06-24 09:39:51,728 p=28086 u=me |  FATAL: all hosts have already failed -- aborting
2015-06-24 09:39:51,728 p=28086 u=me |  PLAY RECAP ******************************************************************** 
2015-06-24 09:39:51,728 p=28086 u=me |             to retry, use: --limit @/Users/me/local_up.retry

Sounds like ~/.ssh/config doesn't exist on the host box. Looking at the Vlad docs it seems that this isn't actually covered so you've likely found a docs gap there - I'll get that sorted when I get minute.

In the meantime, check out this slide from my DC London presentation (click the right arrow a couple times to reveal the full slide content):

http://slides.com/danbohea/vlad-local-development-like-a-boss-1#/8/8

Keep us posted.

xaviemirmon commented 9 years ago

That was it Dan! Cheers! I am closing this ticket and opening one on the docs repo to update the docs.

dixhuit commented 9 years ago

Jolly good :)