Disable polling interval

100 views
Skip to first unread message

Afroz Hussain

unread,
Mar 17, 2012, 11:44:19 AM3/17/12
to Puppet Users
I have created a script which restart the services . Since by default
the polling interval is 30 min, Hence it is getting restarted every 30
min.. Is there any away to force that script to run as per our
requirement.
In another word, How to stop that script to make any changes on the
agent without removing from nodes.pp

Thanks
Afroz Hussain

Zico

unread,
Mar 17, 2012, 12:20:27 PM3/17/12
to puppet...@googlegroups.com
On Sat, Mar 17, 2012 at 9:44 PM, Afroz Hussain <hussai...@gmail.com> wrote:
I have created a script which restart the services . Since by default
the polling interval is 30 min, Hence it is getting restarted every 30
min.. Is there any away to force that script to run as per our
requirement.

You can always run puppet voluntarily when you need it badly with:

puppetd  --no-daemonize  --verbose

then kill this process after your work is done!


--
Best,
Zico

Peter Bukowinski

unread,
Mar 17, 2012, 12:23:56 PM3/17/12
to puppet...@googlegroups.com, Puppet Users

Are you using an exec resource to run the script? Why not let puppet keep running on its regular interval and use a cron resource to schedule the script as required?

--
Peter Bukowinski

Adam Heinz

unread,
Mar 19, 2012, 11:02:13 AM3/19/12
to puppet...@googlegroups.com
Have you looked into using the 'schedule' type to prevent the restarts
from happening during business hours?

Afroz Hussain

unread,
Mar 20, 2012, 3:09:15 PM3/20/12
to Puppet Users
Thanks everyone..
Reply all
Reply to author
Forward
0 new messages