Is there anything special about the cron resource? I have a configuration like this: cron { sync-stored-config: command => "/some/command.sh", user => "icinga", hour => "*", minute => "15,45", } But the ''minute'' field produces this error: 8955 Nov 22 14:30:11 bob puppet-agent[7950]: Could not run Puppet configuration client: Parameter minute failed: 15,45 is not a valid minute at /etc/puppet/environments/loc_b_build/modules/icinga/manifests/cron.pp:31 According to ''man 5 crontab'' this should work. Bernd -- 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.
On Tue, Nov 22, 2011 at 03:48:31PM +0100, Bernd Adamowicz wrote:> Is there anything special about the cron resource? I have a configuration like this: > > cron { sync-stored-config: > command => "/some/command.sh", > user => "icinga", > hour => "*", > minute => "15,45", > }cron { sync-stored-config: command => "/some/command.sh", user => "icinga", hour => "*", minute => [15,45], } If you poke into the type, it defines permitted field formats with regular expressions.> But the ''minute'' field produces this error: > > 8955 Nov 22 14:30:11 bob puppet-agent[7950]: Could not run Puppet configuration client: Parameter minute failed: 15,45 is not a valid minute at /etc/puppet/environments/loc_b_build/modules/icinga/manifests/cron.pp:31 > > According to ''man 5 crontab'' this should work. > > Bernd > > -- > 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.
That made it. Thanks! Bernd> -----Ursprüngliche Nachricht----- > Von: puppet-users@googlegroups.com [mailto:puppet- > users@googlegroups.com] Im Auftrag von Christopher Wood > Gesendet: Dienstag, 22. November 2011 16:01 > An: puppet-users@googlegroups.com > Betreff: Re: [Puppet Users] Different cron behaviour? > > On Tue, Nov 22, 2011 at 03:48:31PM +0100, Bernd Adamowicz wrote: > > Is there anything special about the cron resource? I have a > configuration like this: > > > > cron { sync-stored-config: > > command => "/some/command.sh", > > user => "icinga", > > hour => "*", > > minute => "15,45", > > } > > cron { sync-stored-config: > command => "/some/command.sh", > user => "icinga", > hour => "*", > minute => [15,45], > } > > If you poke into the type, it defines permitted field formats with > regular expressions. > > > But the ''minute'' field produces this error: > > > > 8955 Nov 22 14:30:11 bob puppet-agent[7950]: Could not run Puppet > configuration client: Parameter minute failed: 15,45 is not a valid > minute at > /etc/puppet/environments/loc_b_build/modules/icinga/manifests/cron.pp:3 > 1 > > > > According to ''man 5 crontab'' this should work. > > > > Bernd > > > > -- > > 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.-- 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.