You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to example42-pu...@googlegroups.com
Hello !
I'm trying to use the puppet-mysql module from example42 (https://github.com/example42/puppet-mysql), which use puppi (https://github.com/example42/puppi) and its params_lookup function. I want to use it in the context of a Vagrant VM, so with puppet standalone and no hiera database. I get the following exception :
[default]RunningPuppetwith/tmp/vagrant-puppet/manifests/rundeck-vagrant.pp... Hiera config file /etc/puppetlabs/puppet/hiera.yaml not readable at /tmp/vagrant-puppet/modules-0/mysql/manifests/init.pp:261 on node rundeck-vagrant.nestle.com
I use Puppet Enterprise 2.7.2.
My understanding is that params_lookup should just skip hiera resolution if it cannot find a hiera database, but it does not seem to be the case ...
Any idea ?
Alessandro Franceschi
unread,
Aug 28, 2013, 6:54:03 AM8/28/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to example42-pu...@googlegroups.com
Hi,
params_lookup looks for the precence of the hiera function and if present tries to use it. The problem here is that Hiera is present (shipped with PE) but not configured, hence the error.
A quick workaround is to create a blank /etc/puppetlabs/puppet/hiera.yaml (on the Vagrant host, not in th VM)
al
Guillaume Lederrey
unread,
Aug 31, 2013, 1:36:07 PM8/31/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Alessandro Franceschi, example42-pu...@googlegroups.com
Thank you for your answer ! I'll try your quick fix as soon as
possible. I'll also have a look into puppi to see if might be able
to make it directly compatible with puppet enterprise ...