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 {
|
class sysstat {
|
||||||
|
|
||||||
package { "sysstat":
|
package { "sysstat":
|
||||||
ensure => installed,
|
ensure => installed,
|
||||||
}
|
}
|
||||||
|
|
||||||
case $operatingsystem {
|
case $::operatingsystem {
|
||||||
ubuntu: {
|
ubuntu: {
|
||||||
file { "/etc/default/sysstat":
|
file { "/etc/default/sysstat":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
source => "puppet:///modules/sysstat/sysstat.default",
|
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