From 7d904841c15873db9ac1745f659d8464fd45f41a Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 6 Aug 2010 19:36:40 +0200 Subject: codestyle - whitespace Only code style and whitespace formatting issues. Everything should no be in ligne. --- manifests/cron/linux.pp | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'manifests/cron/linux.pp') diff --git a/manifests/cron/linux.pp b/manifests/cron/linux.pp index 75f11a3..c13c10a 100644 --- a/manifests/cron/linux.pp +++ b/manifests/cron/linux.pp @@ -1,18 +1,12 @@ # manifests/cron/linux.pp class puppet::cron::linux inherits puppet::linux { - include puppet::cron::base - case $puppet_config { - '': { $puppet_config = '/etc/puppet/puppet.conf' } - } - - case $puppet_crontime { - '': { $puppet_crontime = '0,30 * * * *' } - } + include puppet::cron::base + if !$puppet_config { $puppet_config = '/etc/puppet/puppet.conf' } + + if !$puppet_crontime { $puppet_crontime = '0,30 * * * *' } - - File['/etc/cron.d/puppetd.cron']{ - source => undef, - content => "# run puppet -$puppet_crontime root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n", - } + File['/etc/cron.d/puppetd.cron']{ + source => undef, + content => "# run puppet\n$puppet_crontime root /usr/sbin/puppetd --onetime --no-daemonize --splay --config=$puppet_config --color false | grep -E '(^err:|^alert:|^emerg:|^crit:)'\n", + } } -- cgit v1.2.3