Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release > by-pkgid > 6f257ce0fd9f602a316d49a4a7370002 > files > 654

puppet-0.25.4-1mdv2010.1.noarch.rpm

# $Id$
#

$platform = SunOS

$funtest = $platform ? {
    SunOS => yayness,
    AIX => goodness,
    default => badness
}

# this is a comment

$filename = "/tmp/yayness"

$sleeper = file { $filename:
    mode => $platform ? {
        SunOS => 644,
        default => 755
    },
    create => $platform ? "SunOS" => true
}

# i guess it has to be solved this way...

#$platform ? sunos => file { $filename:
#    mode => 644
#}