I have recently upgrade to Puppet v4 and this module still works successfully when run with 'puppet apply' (I am using masterless puppet).
It also works successfully if I use the Vagrant shell provisioner with an inline 'puppet apply'
However, when using Vagrant (I'm using the latest 1.7.4 version) with Puppet v4 installed on the VM and the Vagrant puppet provisioner, the module is NOT called (it 'injects' itself after traversing the site level hierarchy), and therefore none of the Hiera values get resolved whether using automatic parameter binding or direct calls.
Given that this works happily outside of Vagrant, or indeed, inside a Vagrant image using puppet apply, and using the Shell provisioner, I am *assuming* (but I could be wrong) that the Vagrant puppet provisioner is where the issue is.
Can anyone shed any light on why this might be and, ideally, what could be done. I'm happy to help ?
I'm going to post the same question to the Vagrant group since it's related, so apologies in advance to anyone who uses both groups for the cross posting.
Kind Regards
Fraser.
For some time I have been using the excellent ripienaar/puppet-module-data module. This provides a very familiar way to use Hiera but at the individual module level.
I have recently upgrade to Puppet v4 and this module still works successfully when run with 'puppet apply' (I am using masterless puppet).
It also works successfully if I use the Vagrant shell provisioner with an inline 'puppet apply'
However, when using Vagrant (I'm using the latest 1.7.4 version) with Puppet v4 installed on the VM and the Vagrant puppet provisioner, the module is NOT called (it 'injects' itself after traversing the site level hierarchy), and therefore none of the Hiera values get resolved whether using automatic parameter binding or direct calls.
Given that this works happily outside of Vagrant, or indeed, inside a Vagrant image using puppet apply, and using the Shell provisioner, I am *assuming* (but I could be wrong) that the Vagrant puppet provisioner is where the issue is.
Can anyone shed any light on why this might be and, ideally, what could be done. I'm happy to help ?
Fraser.