Daniel Maher
2010-Sep-29 08:15 UTC
[Puppet Users] puppet error on cron w/ "complex" timing
Hello, cron { foo: command => "/bin/date > /tmp/foo", user => root, minute => ''2,7,12,17,22,27,32,37,42,47,52,57'' } Which when parsed by puppetd produces : err: Could not run Puppet configuration client: Parameter minute failed: 2,7,12,17,22,27,32,37,42,47,52,57 is not a valid minute at foo.pp:## I agree that it''s an awkward minute line, but it doesn''t violate cron rules at all. I''m just curious if this is normal, expected behaviour from puppet, or if it''s a bug, or something else perhaps. Thanks all. -- Daniel Maher <dma AT witbe DOT net> "The Internet is completely over." -- Prince -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
John Ferlito
2010-Sep-29 09:09 UTC
Re: [Puppet Users] puppet error on cron w/ "complex" timing
On Wed, Sep 29, 2010 at 10:15:39AM +0200, Daniel Maher wrote:> Hello, > > cron { foo: > command => "/bin/date > /tmp/foo", > user => root, > minute => ''2,7,12,17,22,27,32,37,42,47,52,57'' > } >You want cron { foo: command => "/bin/date > /tmp/foo", user => root, minute => [2,7,12,17,22,27,32,37,42,47,52,57], } Notice I''ve used an array/list instead of a string. Cheers, John -- John Blog http://www.inodes.org LCA2011 http://www.lca2011.org.au -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Matthew Hyclak
2010-Sep-29 10:57 UTC
Re: [Puppet Users] puppet error on cron w/ "complex" timing
Try minute => [2,7,12,17,22,27,32,37,42,47,52,57] Matt -- Sent from my Palm Pre On Sep 29, 2010 4:15, Daniel Maher <dma@witbe.net> wrote: Hello, cron { foo: command => "/bin/date > /tmp/foo", user => root, minute => ''2,7,12,17,22,27,32,37,42,47,52,57'' } Which when parsed by puppetd produces : err: Could not run Puppet configuration client: Parameter minute failed: 2,7,12,17,22,27,32,37,42,47,52,57 is not a valid minute at foo.pp:## I agree that it''s an awkward minute line, but it doesn''t violate cron rules at all. I''m just curious if this is normal, expected behaviour from puppet, or if it''s a bug, or something else perhaps. Thanks all. -- Daniel Maher <dma AT witbe DOT net> "The Internet is completely over." -- Prince -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
maybe this will help: minute => "2-57/5", -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Daniel Maher
2010-Sep-30 13:24 UTC
Re: [Puppet Users] Re: puppet error on cron w/ "complex" timing
On 09/29/2010 03:31 PM, Radek wrote:> maybe this will help: > > minute => "2-57/5", >Lovely, thank you. -- Daniel Maher <dma AT witbe DOT net> "The Internet is completely over." -- Prince -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.