On Wed, 2013-04-17 at 14:27 -0700, Nick Fagerlund wrote:
Hey Matthias! It's a Puppet bug. Sorry.

It's fixed in 3.2, which isn't quite out yet -- 3.2.0-rc1 is probably
coming out this week.

In the meantime, Keith is right:

- Put quotes around "false" in your Hiera yaml files.
- In your Puppet code, put a line like:

$service_real = str2bool("$service")

I've been calling that pattern "sloppy bools." It will work around the bug
for now, and continue to work once the bug is fixed and you start using
real booleans in your yaml again.
The other workaround is to change your class definition from

class foo ( $bar = true ) { ... }


class foo ( $bar = hiera('foo::bar', true) ) { ... }

since the 'hiera' function does not suffer from this bug. This requires
no changes to your yaml file or elsewhere in the code, and can be
removed once you upgrade to a puppet version that includes the fix.

Calvin Walton <calvin.walton@kepstin.ca>

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+unsubscribe@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 6 | next ›
Discussion Overview
grouppuppet-users @
postedApr 17, '13 at 5:09p
activeApr 22, '13 at 3:20p



site design / logo © 2022 Grokbase