Added centos/fedora support to sysstat and fixed puppet lint errors.
This commit is contained in:
parent
a7671ac442
commit
b11cd7b96d
1 changed files with 16 additions and 1 deletions
|
@ -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"],
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue