On Wed, 2013-04-17 at 14:27 -0700, Nick Fagerlund wrote:
Hey Matthias! It's a Puppet bug. Sorry.
http://projects.puppetlabs.com/issues/17474
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.
Hey Matthias! It's a Puppet bug. Sorry.
http://projects.puppetlabs.com/issues/17474
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.
class foo ( $bar = true ) { ... }
to
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.