puppet-lint fixes for psacct module.
This commit is contained in:
parent
0990eddae7
commit
32d897c223
1 changed files with 8 additions and 8 deletions
|
@ -3,15 +3,15 @@
|
||||||
#
|
#
|
||||||
class psacct {
|
class psacct {
|
||||||
|
|
||||||
case $kernel {
|
case $::kernel {
|
||||||
linux: {
|
"linux": {
|
||||||
include psacct::linux
|
include psacct::linux
|
||||||
}
|
}
|
||||||
openbsd: {
|
"openbsd": {
|
||||||
include psacct::openbsd
|
include psacct::openbsd
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("psacct module not supported in ${kernel}")
|
fail("psacct module not supported in ${::kernel}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ class psacct::linux {
|
||||||
|
|
||||||
package { "psacct":
|
package { "psacct":
|
||||||
name => $::operatingsystem ? {
|
name => $::operatingsystem ? {
|
||||||
ubuntu => "acct",
|
"ubuntu" => "acct",
|
||||||
default => "psacct",
|
default => "psacct",
|
||||||
},
|
},
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
|
@ -35,7 +35,7 @@ class psacct::linux {
|
||||||
"ubuntu" => "acct",
|
"ubuntu" => "acct",
|
||||||
default => "psacct",
|
default => "psacct",
|
||||||
},
|
},
|
||||||
ensure => $operatingsystem ? {
|
ensure => $::operatingsystem ? {
|
||||||
"ubuntu" => undef,
|
"ubuntu" => undef,
|
||||||
default => running,
|
default => running,
|
||||||
},
|
},
|
||||||
|
@ -67,7 +67,7 @@ class psacct::openbsd {
|
||||||
exec { "accton":
|
exec { "accton":
|
||||||
command => "accton /var/account/acct",
|
command => "accton /var/account/acct",
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
user => root,
|
user => "root",
|
||||||
refreshonly => true,
|
refreshonly => true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue