diff --git a/sysstat/files/sysstat.default b/sysstat/files/sysstat.default deleted file mode 100644 index 719506f..0000000 --- a/sysstat/files/sysstat.default +++ /dev/null @@ -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="" diff --git a/sysstat/manifests/init.pp b/sysstat/manifests/init.pp index 9a350a8..85a6f4e 100644 --- a/sysstat/manifests/init.pp +++ b/sysstat/manifests/init.pp @@ -1,4 +1,5 @@ - +# Install and enable sysstat accounting. +# class sysstat { package { "sysstat": @@ -7,10 +8,11 @@ class sysstat { case $::operatingsystem { "debian","ubuntu": { - file { "/etc/default/sysstat": - ensure => present, - source => "puppet:///modules/sysstat/sysstat.default", - notify => Service["sysstat"], + augeas { "enable-sysstat": + context => "/files/etc/default/sysstat", + changes => "set ENABLED true", + require => Package["sysstat"], + notify => Service["sysstat"], } } "centos","redhat","fedora": {