booleans in hiera

32 views
Skip to first unread message

Peter Brown

unread,
Jan 17, 2013, 8:50:21 PM1/17/13
to puppet-users
Hi everyone,

I have a few boolean vars i use in a couple of modules I am updating to work with hiera.
I noticed there is currently an issue with using booleans in hiera and puppet doesn't set them properly when it imports them as variables.
I also noticed those bugs seem to have fixes and they also seem to have been committed.
I am currently considering rewriting the modules that use booleans but I would prefer to wait for the fixes.
Can anyone tell me when they will be released and which version will they go into?

Thanks.

Pete.

Ellison Marks

unread,
Jan 18, 2013, 12:14:13 PM1/18/13
to puppet...@googlegroups.com
3.0.2 should have fixed this issue for the puppet backend. I think the YAML backend had this fixed ages ago. Go ahead and give it a try, perhaps on a test machine. It should work.

Brad Ison

unread,
Jan 18, 2013, 3:25:51 PM1/18/13
to puppet...@googlegroups.com
I recently ran into Bug #18234 [1], wherein boolean values in hashes
don't work as expected.

There's a patch available for that. No idea when it's expected to be
merged, but I can confirm it's *not* in 3.0.2.


1. http://projects.puppetlabs.com/issues/18234

--
Brad

Ellison Marks

unread,
Jan 18, 2013, 5:38:27 PM1/18/13
to puppet...@googlegroups.com
Hmm, I didn't know that. I think I missed that by passing the hash wholesale to my template and accessing it there.
Reply all
Reply to author
Forward
0 new messages