Sha256: 2ee950351e4e08a4a28b696202bbbce2791218510c2a171bc5bb78db716d16bc

Contents?: true

Size: 793 Bytes

Versions: 6

Compression:

Stored size: 793 Bytes

Contents

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

$test = "yay"

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

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

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

$mode4 = $value4 ? {
    $test => 755,
    default => 644
}

$mode5 = yay ? {
    $test => 755,
    default => 644
}

$mode6 = $mode5 ? {
    755 => 755
}

file { "/tmp/selectorvalues1": ensure => file, mode => $mode1 }
file { "/tmp/selectorvalues2": ensure => file, mode => $mode2 }
file { "/tmp/selectorvalues3": ensure => file, mode => $mode3 }
file { "/tmp/selectorvalues4": ensure => file, mode => $mode4 }
file { "/tmp/selectorvalues5": ensure => file, mode => $mode5 }
file { "/tmp/selectorvalues6": ensure => file, mode => $mode6 }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-0.24.9 test/data/snippets/selectorvalues.pp
puppet-0.18.4 examples/code/snippets/selectorvalues.pp
puppet-0.24.6 test/data/snippets/selectorvalues.pp
puppet-0.24.5 test/data/snippets/selectorvalues.pp
puppet-0.24.7 test/data/snippets/selectorvalues.pp
puppet-0.24.8 test/data/snippets/selectorvalues.pp