Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > f13c73c9c2d29f4683c0c226c3c4cf16 > files > 717

puppet-2.6.2-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
#}