Révision 26cdcbbd
Support old-style facts for facter in Debian Stretch
manifests/bridges.pp | ||
---|---|---|
6 | 6 |
# lint:endignore |
7 | 7 |
) { |
8 | 8 |
if $ensure == 'present' { |
9 |
$interfaces = keys($facts['networking']['interfaces']) |
|
9 |
if $facts['networking'] { |
|
10 |
$interfaces = keys($facts['networking']['interfaces']) |
|
11 |
} |
|
12 |
else { |
|
13 |
$interfaces = split($facts['interfaces'], ',') |
|
14 |
} |
|
10 | 15 |
$bridges = $interfaces.filter |$items| { $items =~ $bridgenames } |
11 | 16 |
|
12 | 17 |
$bridges.each |String $bridge| { |
Formats disponibles : Unified diff