From 933249d58d25f2c34831fd2a34d7d92c4cbdaba3 Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Mon, 23 Apr 2012 12:06:33 +0000 Subject: [PATCH] Sysstat module for Ubuntu. Centos/Fedora and OpenBSD to be investigated. --- sysstat/files/sysstat.default | 18 ++++++++++++++++++ sysstat/manifests/init.pp | 15 +++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 sysstat/files/sysstat.default create mode 100644 sysstat/manifests/init.pp diff --git a/sysstat/files/sysstat.default b/sysstat/files/sysstat.default new file mode 100644 index 0000000..719506f --- /dev/null +++ b/sysstat/files/sysstat.default @@ -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="" diff --git a/sysstat/manifests/init.pp b/sysstat/manifests/init.pp new file mode 100644 index 0000000..36d55d5 --- /dev/null +++ b/sysstat/manifests/init.pp @@ -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", + } + } + } +}