Fix lint warnings about ensure placement

This commit is contained in:
Ossi Salmi 2015-05-04 11:00:36 +03:00
parent a8ebd9417c
commit 96fb1bacbc
21 changed files with 53 additions and 48 deletions

View file

@ -1,18 +1,23 @@
# Install net-snmp utilities
#
class snmp::utils {
package { "net-snmp":
name => $::operatingsystem ? {
"openbsd" => "net-snmp",
default => [ "net-snmp-utils", "net-snmp", ],
},
ensure => installed,
case $::operatingsystem {
"openbsd": {
package { "net-snmp":
ensure => installed,
}
}
default: {
package { [ "net-snmp", "net-snmp-utils" ]:
ensure => installed,
}
}
}
}
# Install snmp trap daemon
#
# === Parameters