puppet/sysstat/manifests/init.pp
2013-11-13 23:05:50 +02:00

32 lines
750 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":
ensure => running,
enable => true,
hasstatus => true,
require => Package["sysstat"],
}
}