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.lichtenb...@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.lichtenb...@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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to