sysstat: Enable sysstat using agueas on Ubuntu

This commit is contained in:
Ossi Salmi 2013-11-13 23:05:50 +02:00
parent 15a3e81a82
commit b11ca76add
2 changed files with 7 additions and 23 deletions

View file

@ -1,4 +1,5 @@
# Install and enable sysstat accounting.
#
class sysstat {
package { "sysstat":
@ -7,10 +8,11 @@ class sysstat {
case $::operatingsystem {
"debian","ubuntu": {
file { "/etc/default/sysstat":
ensure => present,
source => "puppet:///modules/sysstat/sysstat.default",
notify => Service["sysstat"],
augeas { "enable-sysstat":
context => "/files/etc/default/sysstat",
changes => "set ENABLED true",
require => Package["sysstat"],
notify => Service["sysstat"],
}
}
"centos","redhat","fedora": {