Re: [Puppet Users] ripienaar/puppet-module-data Not working with the Vagrant puppet provisioner.
Yes, thanks for the comment. I am aware of this approach, but given the module still works ok under Puppet4 and we have a used it a fair bit, I (and my bosses) would obviously prefer not to have to develop a new solution. That said, it is something I am looking into. Fraser. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/cfdcee69-cab8-455a-bc42-2b8d167ec83a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [Puppet Users] ripienaar/puppet-module-data Not working with the Vagrant puppet provisioner.
On Sun, Jul 26, 2015 at 12:16 PM, Fraser Goffin wrote: > 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 ? > > This is a bit of a side note, but Puppet 4 now has a native data-in-modules pattern, which you can read about on Henrik's blog at: http://puppet-on-the-edge.blogspot.com/2015/01/puppet-40-data-in-modules-and.html http://puppet-on-the-edge.blogspot.be/2015/02/puppet-40-data-in-modules-part-ii.html I haven't personally used the Puppet 4 data in modules providers, but it looks like a good way to natively get the functionality RI implemented in puppet-module-data. -- Daniel Dreier Technical Operations Engineer GPG: BA4379FD -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAGk8suawgO8d3z6ZsPOrb9PiKkouPcDjQ-T4f06vDS6zuana3w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] ripienaar/puppet-module-data Not working with the Vagrant puppet provisioner.
Forgot to mention, this also worked successfully with Vagrant 1.7.2 and Puppet 3.x, but upgrades to both are where we are today. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/eb559666-45ef-4c72-a278-8c50b5207e8d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[Puppet Users] ripienaar/puppet-module-data Not working with the Vagrant puppet provisioner.
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 ? 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. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/2ff1a448-1cb4-42bf-95d9-69b17b8ad108%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.