Added centos/fedora support to sysstat and fixed puppet lint errors.

This commit is contained in:
Timo Mkinen 2012-05-18 20:32:13 +03:00
parent a7671ac442
commit b11cd7b96d

View file

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