This message was deleted.
# puppet
s
This message was deleted.
b
• I recommend to use a class parameter • how do you check that it's false?
i
if $var { notify{’msg”:} } not sure what you mean by a class param - something passed into the module ? I’m just trying to fix some broken code at present so if I can fix it without adding a class param then I’d prefer to do so
b
style guide recommends to use class parameter with automatic hiera lookup instead of calling
lookup()
by hand, but that's just a cosmetic thing
try:
Copy code
notify { 'foo':
  message => "${var}",
}
i
It tells me that the message is false
b
I guess you've that value in hiera 🙂
did you try running
puppet lookup
to check if it's in hiera?
i
I’m pretty sure its not there - will try the lookup and see
Lookup shows it as false - strange thing is our hieradata repo doesnt have it set - so something has been changed ‘along the way’ to the puppet servers. Something else to chase Tanks for the help
b
how did you call lookup
with --explain and --compile and correct environment and fqdn?
i
Sorry for the late reply called with correct fqdn and environment and explain. Found the file and it looks like it was modified on the puppet server but not the repo (which is where I searched originally)