Providing hiera with module data

46 views
Skip to first unread message

Steven Jonthen

unread,
Nov 30, 2013, 2:42:22 PM11/30/13
to puppet...@googlegroups.com
Hi guys,

I don't know how to solve this:
I want ".yaml"-files in each module's "/data"-directory. These .yaml-files should contain data, which Hiera sould pass to the module's manifests.
How can I do that? I'm using Puppet 3.3.1

Thanks in advance!

Dan White

unread,
Nov 30, 2013, 3:01:13 PM11/30/13
to Puppet Users Mailing List
--
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/1ad11ee0-3e8c-4473-871a-c6bb0cc8bf02%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Message has been deleted

Steven Jonthen

unread,
Nov 30, 2013, 4:47:49 PM11/30/13
to puppet...@googlegroups.com
Hiera-2?

I can't find any information on the puppet-website about Hiera-2?

What do you mean with Hiera-2?

Steven Jonthen

unread,
Dec 1, 2013, 7:27:42 AM12/1/13
to puppet...@googlegroups.com
Hi,

I have this problem: Hiera only looks inside "data/common.yaml"-file, which is in my module-directory. When i put other data into another yaml file "data/example.yaml", then Puppet doesn't find that data.

What's the cause for this problem?

Igor Berger

unread,
Dec 2, 2013, 5:32:05 AM12/2/13
to puppet...@googlegroups.com
Same problem here

:(

Pablo Fernandez

unread,
Dec 2, 2013, 7:53:11 AM12/2/13
to puppet...@googlegroups.com
I recommend you run the master with --debug and --no-daemonize, you should be able to see all hiera searches for each parameter. At least that helped me a lot.
--
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.

Steven Jonthen

unread,
Dec 2, 2013, 10:33:39 AM12/2/13
to puppet...@googlegroups.com
I only need to know how to use different "hiera.yaml" files for different modules. How can I achieve that`?

Dan White

unread,
Dec 2, 2013, 1:16:35 PM12/2/13
to puppet...@googlegroups.com
What have you tried ?

Links to all the available documentation have already been provided.
I have not tried using "Data In Modules", so I cannot do more than make educated guesses and intelligent suggestions based on the available information.

Have you tried directly contacting the people that wrote this feature ?  Unless someone steps up and admits that they know how this works, I cannot think of anything else to suggest other than to keep re-reading the documentation provided and experiment on a test system.  Other folks suggested running your puppetmaster in debug mode ( --debug --no-daemonize ) to see the hiera lookups.  This is an excellent suggestion.

Good luck.

“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: Monday, December 2, 2013 5:33:39 AM
Subject: [Puppet Users] Re: Providing hiera with module data


I only need to know how to use different "hiera.yaml" files for different modules. How can I achieve that`?

--
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.
Reply all
Reply to author
Forward
0 new messages