summaryrefslogtreecommitdiff
path: root/manifests/cron/linux.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-08-06 19:36:40 +0200
committermh <mh@immerda.ch>2010-08-06 19:36:40 +0200
commit7d904841c15873db9ac1745f659d8464fd45f41a (patch)
tree991567a2557fa59b6502d2c0bcf87f6c786c5c34 /manifests/cron/linux.pp
parent6bd681ab05072964efc95ecfe2816e371e45a862 (diff)
codestyle - whitespace
Only code style and whitespace formatting issues. Everything should no be in ligne.
Diffstat (limited to 'manifests/cron/linux.pp')
-rw-r--r--manifests/cron/linux.pp22
1 files changed, 8 insertions, 14 deletions
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",
+ }
}