Sysstat module for Ubuntu. Centos/Fedora and OpenBSD to be investigated.

This commit is contained in:
Ossi Herrala 2012-04-23 12:06:33 +00:00
parent 7083f00454
commit 933249d58d
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#
# Default settings for /etc/init.d/sysstat, /etc/cron.d/sysstat
# and /etc/cron.daily/sysstat files
#
# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="true"
# Additional options passed to sa1 by /etc/init.d/sysstat
# and /etc/cron.d/sysstat
# By default contains the `-S DISK' option responsible for
# generating disk statisitcs.
SA1_OPTIONS="-S DISK"
# Additional options passed to sa2 by /etc/cron.daily/sysstat.
SA2_OPTIONS=""

15
sysstat/manifests/init.pp Normal file
View file

@ -0,0 +1,15 @@
class sysstat {
package { "sysstat":
ensure => installed,
}
case $operatingsystem {
ubuntu: {
file { "/etc/default/sysstat":
ensure => present,
source => "puppet:///modules/sysstat/sysstat.default",
}
}
}
}