Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-updates > by-pkgid > bda115b49f08d4ba38949ad8a04a5205 > files > 655

puppet-0.25.5-1.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
#}