puppet resource processed just once a day

16 views
Skip to first unread message

Ángel L. Mateo

unread,
Sep 18, 2019, 2:55:29 AM9/18/19
to Puppet Users
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?

--
Angel L. Mateo Martínez
Sección de Telemática
Área de Tecnologías de la Información
y las Comunicaciones Aplicadas (ATICA)
http://www.um.es/atica
Tfo: 868889150
Fax: 868888337

jcbollinger

unread,
Sep 18, 2019, 9:07:56 AM9/18/19
to Puppet Users


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 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


Angel L. Mateo

unread,
Oct 3, 2019, 4:21:56 AM10/3/19
to puppet...@googlegroups.com
Thank you very much.

El 18/9/19 a las 15:07, jcbollinger escribió:
>
>
> 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 puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/0bc36085-9736-49d9-9503-fa9e8e62b38e%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/0bc36085-9736-49d9-9503-fa9e8e62b38e%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages