Dynamic hiera.yaml

28 views
Skip to first unread message

Steven Jonthen

unread,
Dec 1, 2013, 10:28:52 PM12/1/13
to puppet...@googlegroups.com
Hi,

I want Puppet to take each module's own "hiera.yaml"-file, which is in the module-directory.
That works if I use "puppet agent --apply --binder --hiera_config=/path/to/module_hiera.yaml -e 'include classxy'"
but Puppet doesn't find the parameters if I use "puppet agent --test"

How can I fix this?

Dan White

unread,
Dec 2, 2013, 8:03:19 AM12/2/13
to puppet...@googlegroups.com
You have to "turn it on"

From   https://github.com/puppetlabs/armatures/blob/master/arm-9.data_in_modules/index.md  (Examples)

NOTE: In order to activate the "data-in-modules" and "Hiera-2" it is required to:

    • Use one of these settings (in puppet's config or made from the command line). Neither is on by default in Puppet 3.3.x
      • --binder
      • --parser future
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)


From: "Steven Jonthen" <coffeeju...@gmail.com>
To: puppet...@googlegroups.com
Sent: Sunday, December 1, 2013 10:28:52 PM
Subject: [Puppet Users] Dynamic hiera.yaml
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/86562c09-cd8c-4e72-8a6e-94b5e2fea275%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages