Forum: Cfengine Help
Subject: Re: run cf-runagent only when file is changed (not copied, not 
created).
Author: Igor
Link to topic: https://cfengine.com/forum/read.php?3,17843,17860#msg-17860

It's simple. I already wrote about it in previous message shortly.

1) Get a lot of files (configs) from svn and put then in local copy (for 
example /var/cfengine/myconfigs). 
2) If any configs is changed in local copy - distribute them to remote servers, 
where remote servers is classified by functionality.

For example, i have a lot of apache's frontends in web cluster. I want to place 
changed config for php project there as quickly and simultaneously as possible:

if config.php is changed -> place to $(apaches_servers_pool)
if config_backend.php is changed -> place to $(backends_servers_pool)  
etc...

If i start cf-agent from cf-execd on $(apaches_servers_pool) every 5 minutes, i 
get situation when half of apache's servers have new configs and half of 
servers have old configs. Since all of them in web cluster - this situation is 
undesirable.

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

Reply via email to