summaryrefslogtreecommitdiffstats
path: root/examples/selectors
blob: a70399bc7e9a5b596d71ccc31cd8b0a63c7d612d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $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
#}