hashbangcode / vlad

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

ansible.cfg when using VMware/Parallels Desktop? #266

Closed wizonesolutions closed 8 years ago

wizonesolutions commented 9 years ago

Was looking through the code and noticed ansible.cfg contains:

ansible_ssh_private_key_file=.vagrant/machines/default/virtualbox/private_key

This would be wrong for provider vmware or parallels. Is this overridden elsewhere? I grepped, but I'm not seeing anything. Would that have any actual implications or require overrides for users of the other two systems?

philipnorton42 commented 9 years ago

Very true, this variable is not overridden anywhere so it won't work for vmware or parallels. Some extra investigation needed here I think...

zxaos commented 8 years ago

I'm pretty sure this isn't an issue - I've been running vlad with VMWare successfully for quite a while now.

In fact, we should probably just drop that line from ansible.cfg completely. This is because... (snip from https://github.com/mitchellh/vagrant/pull/5044/ )

Ansible (tested with 1.9.1) behaves with following precedence rules (listed from lowest to highest priority):

private_key_file defined in an Ansible configuration file (e.g. local ansible.cfg) ANSIBLE_PRIVATE_KEY_FILE environment variable --private-key command line argument ansible_private_key_file=... value(s) in the inventory file

...

So, Good News: The additional private keys are correctly passed to the ssh command by ansible-playbook, even when ansible_ssh_private_key_file is set in the inventory.

Essentially Vagrant correctly passes keys on the command line when it invokes ansible, so we don't need to worry about where the keys are or the provider we're using.

So here's a PR to remove it altogether #320

zxaos commented 8 years ago

@wizonesolutions I think merging #320 resolved this issue :-)

philipnorton42 commented 8 years ago

Cool! @wizonesolutions if you can confirm this when you get a minute we can close this issue off :)

wizonesolutions commented 8 years ago

I don't even remember the context for this. Close it! :)

  1. des. 2015 16:36 skrev "Philip Norton" notifications@github.com:

Cool! @wizonesolutions https://github.com/wizonesolutions if you can confirm this when you get a minute we can close this issue off :)

— Reply to this email directly or view it on GitHub https://github.com/hashbangcode/vlad/issues/266#issuecomment-165146345.

dixhuit commented 8 years ago

Closing as theoretically fixed and the opportunity to test in the original context has passed. Please re-open if a subsequent test fails.