From 3678ae46f90f3057dc2ce2882b8d2dc7af6cc6f4 Mon Sep 17 00:00:00 2001 From: Ossi Salmi Date: Thu, 16 Aug 2012 00:37:29 +0300 Subject: [PATCH] Don't define ensure for psacct service on Ubuntu, init script has no status command --- psacct/manifests/init.pp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/psacct/manifests/init.pp b/psacct/manifests/init.pp index ac6a042..99bcb18 100644 --- a/psacct/manifests/init.pp +++ b/psacct/manifests/init.pp @@ -23,7 +23,7 @@ class psacct { class psacct::linux { package { "psacct": - name => $operatingsystem ? { + name => $::operatingsystem ? { ubuntu => "acct", default => "psacct", }, @@ -31,11 +31,14 @@ class psacct::linux { } service { "psacct": - name => $operatingsystem ? { - ubuntu => "acct", - default => "psacct", + name => $::operatingsystem ? { + "ubuntu" => "acct", + default => "psacct", + }, + ensure => $operatingsystem ? { + "ubuntu" => undef, + default => running, }, - ensure => running, enable => true, hasstatus => true, require => Package["psacct"],