From 32d897c223a23ba5b7337f6aba629ff407ef8a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 5 Oct 2012 01:26:53 +0300 Subject: [PATCH] puppet-lint fixes for psacct module. --- psacct/manifests/init.pp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/psacct/manifests/init.pp b/psacct/manifests/init.pp index 99bcb18..bd85529 100644 --- a/psacct/manifests/init.pp +++ b/psacct/manifests/init.pp @@ -3,15 +3,15 @@ # class psacct { - case $kernel { - linux: { + case $::kernel { + "linux": { include psacct::linux } - openbsd: { + "openbsd": { include psacct::openbsd } default: { - fail("psacct module not supported in ${kernel}") + fail("psacct module not supported in ${::kernel}") } } @@ -24,8 +24,8 @@ class psacct::linux { package { "psacct": name => $::operatingsystem ? { - ubuntu => "acct", - default => "psacct", + "ubuntu" => "acct", + default => "psacct", }, ensure => installed, } @@ -35,7 +35,7 @@ class psacct::linux { "ubuntu" => "acct", default => "psacct", }, - ensure => $operatingsystem ? { + ensure => $::operatingsystem ? { "ubuntu" => undef, default => running, }, @@ -67,7 +67,7 @@ class psacct::openbsd { exec { "accton": command => "accton /var/account/acct", path => "/bin:/usr/bin:/sbin:/usr/sbin", - user => root, + user => "root", refreshonly => true, }