mwrock / packer-templates

Templates for creating vagrant boxes
Other
535 stars 250 forks source link

Enable ansible access during provisioning #88

Open jean opened 7 years ago

jean commented 7 years ago

Without this, Ansible can't connect to the created VM. This is a fix to https://github.com/mwrock/packer-templates/issues/86. A better fix is probably https://github.com/mwrock/packer-templates/pull/24 which modifies the box creation, rather than adding provisioning after the fact, but that has gone unmerged since 2015.

mwrock commented 7 years ago

Thanks for taking the time to put this together. My goal with these templates is that they be as generic as possible so I'd prefer not to include specific IP addresses or scripts specific to any individual configuration management tool. I'm certainly open to enabling winrm over https but I'd prefer to see that in the packer setup and not the Vagrantfile.

jean commented 7 years ago

@mwrock I agree that this belongs in the packer setup, I think that's what #24 is meant to do? In the meantime, users end up with a box that's unreachable by ansible unless they discover the required changes to the Vagrantfile, so I submit this PR as a way to get them underway more easily.