puppet/sysstat/manifests/init.pp
Ossi Salmi 6e39b1d906 sysstat: Remove unnecessary ensure from the service
The sysstat init script is meant only to mark reboots in the sar logs.
2013-11-28 22:15:35 +02:00

30 lines
689 B
Puppet

# Install and enable sysstat accounting.
#
class sysstat {
package { "sysstat":
ensure => installed,
}
case $::operatingsystem {
"debian","ubuntu": {
augeas { "enable-sysstat":
context => "/files/etc/default/sysstat",
changes => "set ENABLED true",
require => Package["sysstat"],
notify => Service["sysstat"],
}
}
"centos","redhat","fedora": {
}
default: {
fail("sysstat not supported on ${::operatingsystem}")
}
}
service { "sysstat":
enable => true,
require => Package["sysstat"],
}
}