I run the following on the policy server, then client:
sudo cf-agent -f /var/cfengine/inputs/
failsafe.cf -KI && sudo cf-agent -KI
This makes sure the policy server has been updated from masterfiles, so that the updated files will be available to the clients.
The normal procedure that most people use is to edit files in /var/cfengine/masterfiles, while they are served from /var/cfengine/inputs. cf-agent needs to run on the policy server once to make them ready for serving to clients.
When you make an edit, then right away run cf-agent on clients and they don't see you're change it's because the server hasn't updated yet. Then later without doing anything else, it just works. It's because the server itself has had time to run cf-agent itself and update the files.
--
Brian
> --
> You received this message because you are subscribed to the Google Groups "help-cfengine" group.
> To post to this group, send email to
help-c...@googlegroups.com.
> To unsubscribe from this group, send email to
help-cfengin...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/help-cfengine?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>