On Wednesday, September 18, 2019 at 1:55:29 AM UTC-5, amateo wrote:
>
> Hi, 
>
>         I have a puppet resource I would like it to be processed just in 
> one 
> run every day, I don't need it to be processed in every run. 
>
>         Is this possible? How? 
>

This is what schedules 
<https://puppet.com/docs/puppet/latest/metaparameter.html#schedule> are 
for.  So something like this:

schedule { 'once per calendar day':
  period      => 'daily',
  periodmatch => 'number',
}


mymodule::myresource { 'x':
  schedule => 'once per calendar day',
}

The Schedule resource type has rather more flexibility than just that, and 
also some important caveats, so do read its docs.


John


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0bc36085-9736-49d9-9503-fa9e8e62b38e%40googlegroups.com.

Reply via email to