Re: [Puppet Users] erb logic with a hiera value

2012-05-19 Thread Wolf Noble
Thanks Gary, I knew it was something simple. Appreciate the help <% if foostatus == "true" -%> This is the problem - you're trying to compare a boolean value of true to a string value of 'true'. Just do something like: <% if foostatus -%> That should work for you :)

Re: [Puppet Users] erb logic with a hiera value

2012-05-19 Thread Gary Larizza
On Sat, May 19, 2012 at 9:57 AM, Wolf Noble wrote: > > so I've set a hiera key, and trying to display some different data in > motd depending on if the value of said key is true or false… it gets set > accordingly.. but my motd template doesn't seem to be properly reacting > when the value of it

[Puppet Users] erb logic with a hiera value

2012-05-19 Thread Wolf Noble
so I've set a hiera key, and trying to display some different data in motd depending on if the value of said key is true or false… it gets set accordingly.. but my motd template doesn't seem to be properly reacting when the value of it changes.. it's as if the variable never matches "true" no