Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
debug: //shared::puppet/Cron[asdf]: Changing ensure debug: //shared::puppet/Cron[asdf]: 1 change(s) notice: //shared::puppet/Cron[asdf]/ensure: created debug: Flushing cron provider target root "-":5: bad command errors in crontab file, can't install. debug: //shared::puppet/Cron[puppetrun]: Changing ensure debug: //shared::puppet/Cron[puppetrun]: 1 change(s) notice: //shared::puppet/Cron[puppetrun]/ensure: created debug: Flushing cron provider target root "-":5: bad command errors in crontab file, can't install. cron{ "puppetrun": command=>"/nail/sys/bin/puppetrun 60", environment=>"MAILTO=karl@slide.com", user=>"root", minute=>$minutes } cron{"asdf": command=>"/bin/true", user=>"root" } ------------------- if i put a puts text in the crontab.rb provider at line 190 it outputs: # HEADER: This file was autogenerated at Thu Jan 14 02:03:41 +0000 2010 by puppet. # HEADER: While it can still be managed manually, it is definitely not recommended. # HEADER: Note particularly that the comments starting with 'Puppet Name' should # HEADER: not be deleted, as doing so could cause duplicate cron jobs. # Puppet Name: asdf * * * * * * /bin/true # Puppet Name: puppetrun * 47 * * * * /nail/sys/bin/puppetrun 60
This paste will be private.
From the Design Piracy series on my blog: