Sha256: 652e210584cb15fd1232beca1d4e7adc90c85b99627ac3420f22be245ec29fbf

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

$value1 = ""
$value2 = true
$value3 = false

$mode1 = $value1 ? {
    "" => 755,
    default => 644
}

$mode2 = $value2 ? {
    true => 755,
    default => 644
}

$mode3 = $value3 ? {
    false => 755,
    default => 644
}

file { "/tmp/selectorvalues1": ensure => file, mode => $mode1 }
file { "/tmp/selectorvalues2": ensure => file, mode => $mode2 }
file { "/tmp/selectorvalues3": ensure => file, mode => $mode3 }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-0.13.6 examples/code/snippets/selectorvalues.pp
puppet-0.13.1 examples/code/snippets/selectorvalues.pp
puppet-0.13.0 examples/code/snippets/selectorvalues.pp
puppet-0.13.2 examples/code/snippets/selectorvalues.pp