Puppi and params_lookup without hiera

239 views
Skip to first unread message

guillaume.lederrey

unread,
Aug 27, 2013, 7:33:49 AM8/27/13
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] Running Puppet with /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
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
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 ...
> --
> You received this message because you are subscribed to the Google Groups
> "Example42 Puppet Modules" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to example42-puppet-m...@googlegroups.com.
> Visit this group at http://groups.google.com/group/example42-puppet-modules.
> For more options, visit https://groups.google.com/groups/opt_out.



--
mobile : +41 76 573 32 40
skype : Guillaume.Lederrey

projects :
* http://rwanda.ledcom.ch/
* http://trock.ch/
others :
* http://kiva.org/
Reply all
Reply to author
Forward
0 new messages