Thanks for the help. I opted to used strings on the variables, which to me is not good!!! (not a proper defined language)
I should be able to use the types true, false and should be able to check for the nothing/nil/undef variable which I can't and I think is bad. Once again, thanks for your help. On Apr 29, 6:14 am, Jan <[email protected]> wrote: > On 04/28/2011 10:01 PM Roberto Bouza wrote: > > > That is the problem. :-) > > > If its false/true I need to do stuff like > > > if $enabled != undef { > > class { 'doit': enabled => $enabled } # This here will use true or > > false to delete or add files for example > > } > > > But if it's undef I don't even want to include the class. > > Maybe this way? > > $foo = "true" > > if $foo in [ "true", "false" ] { > alert "foo!" > > } > > [12:41:25] $ puppet apply test.pp > alert: Scope(Class[main]): foo! > > ;) > > signature.asc > < 1KViewDownload -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
