I took advantage of this by storing all my settings in YAML and then using the same YAML for both Vagrant and my Ansible provisioner:
Here's the Ruby Script that loads the YAML:
https://github.com/BigSense/vSense/blob/master/core/vagrante...
That I call from my Vagrant file:
https://github.com/BigSense/vSense/blob/master/core/infrastr...
That is also loaded in all my Ansible roles:
https://github.com/BigSense/vSense/blob/master/ansible/bigse...
I took advantage of this by storing all my settings in YAML and then using the same YAML for both Vagrant and my Ansible provisioner:
Here's the Ruby Script that loads the YAML:
https://github.com/BigSense/vSense/blob/master/core/vagrante...
That I call from my Vagrant file:
https://github.com/BigSense/vSense/blob/master/core/infrastr...
That is also loaded in all my Ansible roles:
https://github.com/BigSense/vSense/blob/master/ansible/bigse...