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
Description: OpenPGP digital signature
