puppet/sysstat/manifests/init.pp
Ossi Salmi 24ecb51f6f Added support for RHEL and did some syntax cleaning
Assume that "RedHat" also works where "CentOS" does.
2012-09-05 17:29:36 +03:00

30 lines
657 B
Puppet

class sysstat {
package { "sysstat":
ensure => installed,
}
case $::operatingsystem {
"ubuntu": {
file { "/etc/default/sysstat":
ensure => present,
source => "puppet:///modules/sysstat/sysstat.default",
notify => Service["sysstat"],
}
}
"centos","redhat","fedora": {
}
default: {
fail("sysstat not supported on ${::operatingsystem}")
}
}
service { "sysstat":
ensure => running,
enable => true,
hasstatus => true,
require => Package["sysstat"],
}
}