sysstat: Enable sysstat using agueas on Ubuntu

This commit is contained in:
Ossi Salmi 2013-11-13 23:05:50 +02:00
parent 15a3e81a82
commit b11ca76add
2 changed files with 7 additions and 23 deletions

View file

@ -1,18 +0,0 @@
#
# 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=""

View file

@ -1,4 +1,5 @@
# Install and enable sysstat accounting.
#
class sysstat { class sysstat {
package { "sysstat": package { "sysstat":
@ -7,9 +8,10 @@ class sysstat {
case $::operatingsystem { case $::operatingsystem {
"debian","ubuntu": { "debian","ubuntu": {
file { "/etc/default/sysstat": augeas { "enable-sysstat":
ensure => present, context => "/files/etc/default/sysstat",
source => "puppet:///modules/sysstat/sysstat.default", changes => "set ENABLED true",
require => Package["sysstat"],
notify => Service["sysstat"], notify => Service["sysstat"],
} }
} }