Hi, I had a cronjob with: weekday => [''1-5''], and wanted to revert back to the default (*). Simply leaving out the weekday line did not activate the default. The currently existing cronjob was not changed. I expected that leaving off any periodic field means replacing it with *. The ''Type Reference'' in the wiki doesn''t tell anything about the default handling. I managed it with: weekday => [''0-6''], no big deal, but I would prefer by design a definition like: if I don''t specify any of these parameter, the default * is assumed. Helmut -- ------------------------------------------------------------------------- Helmut Lichtenberg <Helmut.Lichtenberg@fli.bund.de> Tel.: 05034/871-128 Institut für Nutztiergenetik (FLI) 31535 Neustadt Germany ------------------------------------------------------------------------- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, Puppet does what you tell it to do, it usually doesnt have defaults. if you want a default for any resource type, you should specify it, for example, if you don''t want repeating yourself for all of your services you can do something like this (in a top level class declaration) Service {enable => true, ensure => running, hasstatus => true } the same can be done for cron.. cheers, Ohad On Mon, Apr 27, 2009 at 2:06 PM, Helmut Lichtenberg < Helmut.Lichtenberg@fli.bund.de> wrote:> > Hi, > I had a cronjob with: > > weekday => [''1-5''], > > and wanted to revert back to the default (*). > > Simply leaving out the weekday line did not activate the default. The > currently existing cronjob was not changed. > > I expected that leaving off any periodic field means replacing it with *. > > The ''Type Reference'' in the wiki doesn''t tell anything about the default > handling. I managed it with: > > weekday => [''0-6''], > > no big deal, but I would prefer by design a definition like: if I don''t > specify any of these parameter, the default * is assumed. > > Helmut > > -- > ------------------------------------------------------------------------- > Helmut Lichtenberg <Helmut.Lichtenberg@fli.bund.de> Tel.: 05034/871-128 > Institut für Nutztiergenetik (FLI) 31535 Neustadt Germany > ------------------------------------------------------------------------- > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi Ohad, Ohad Levy schrieb am 27. Apr 2009 um 08:27:57 CEST:> Puppet does what you tell it to do, it usually doesnt have defaults.if I have set e.g. weekday => [''1-5''] and want to revert back to the default (which maybe cron has), is it valid to say: weekday => undef,> if you want a default for any resource type, you should specify it, for > example, if you don''t want repeating yourself for all of your services you > can do something like this (in a top level class declaration) > > Service {enable => true, ensure => running, hasstatus => true } > > the same can be done for cron..Yes, I use it for file{}, to set defaults. Is there any doc about the different meanins concerning the case of the first character: file - File service - Service Is there a difference and when do I have to use what? Thanks Helmut -- ------------------------------------------------------------------------- Helmut Lichtenberg <Helmut.Lichtenberg@fli.bund.de> Tel.: 05034/871-128 Institut für Nutztiergenetik (FLI) 31535 Neustadt Germany ------------------------------------------------------------------------- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---