On 04/28/2011 01: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
}
then try:
if $foo == true or $foo == false {
class { 'doit': enabled => $enabled }
}
or:
case $foo {
true,false: { class { 'doit': enabled => $enabled } }
}
--
Pietro Monteiro
Senior Developer
DECK Monitoring
115 W 8th Ave. Eugene, Oregon 97401
Office: 541-343-0110
www.deckmonitoring.com
--
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.