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", + } + } + } +}