Fix lint warnings about ensure placement
This commit is contained in:
parent
a8ebd9417c
commit
96fb1bacbc
21 changed files with 53 additions and 48 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue