Hi >> Is there a way to see if variables are defined? > > I use this syntax : > > if $var { > # blah > } > else > { > # bluh > } > > requires a not-too-old puppet
which will #bluh if $var is set to false as well, however you can do: if ($var != '') { # blah } else { # bluh } cheers pete --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---