Clearly I have a firm grasp on YAML. That'd be the issue - thanks! For the record I tried all of the possible values (True, "true", 1) - obviously it was failing as it was an array as previously mentioned.
On Thu, Feb 28, 2013 at 5:11 PM, Dan White <[email protected]> wrote: > Other folks have pointed out the fact that you made an array, but have you > tried using true and false without the quotes ? > I believe that will produce a proper Boolean value. > > “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: *[email protected] > *To: *[email protected] > *Sent: *Thursday, February 28, 2013 3:44:39 PM > *Subject: *[Puppet Users] Issues with conditionals & Hiera > > > Hello everyone! I hope your Thursdays are going swimmingly! > > I'm having an issue with using data looked up via Hiera and using that in > a conditional in my manifest. Here is a simple use-case where I simply > cannot get it to work: http://pastie.org/private/gtplsiajmmrdhjie49bda# > > In this example the Hiera lookup is handling as expected - globally the > cagefs_enabled variable is being returned as "false" and on the > some.fqdn.com.yaml it's being returned as "true". The notice() call right > after the lookup confirms that the variable is being set properly. > > The issue is I cannot for the life of me to get that data to work in a > conditional. I've tried string comparisons and simple binary ones (1==1, > 0==0) to no luck. The IF statement simply isn't being hit. > > Am I missing something obvious in this case? > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
