Forum: Cfengine Help (Mailing list)
Subject: Re: script execution
Author: eystein
Link to topic: https://cfengine.com/forum/read.php?3,16605,16606#msg-16606

Hi Christian,

This is indeed possible.
You can include the script in the Cfengine policies, and use cf-runagent to run 
cf-agent on a set of hosts, which in turn executes the script.
However, by default, cf-agent is run every 5 mins (by cf-execd), so it's 
perhaps not worth it to manually run cf-agent remotely with cf-runagent?
Why don't you just have cf-agent run the script (e.g. every night) 
automatically?
Do you really need to push a button to make it happen?

There's a special topics guide on Distributed Scheduling available at the tech 
corner, maybe that's a place to start?

--
Regards,
Eystein

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to