I am not sure if this is a bug, or just a discrepancy in the manual:
body server control
{
allowconnects => { "127.0.0.1" , "::1" };
allowallconnects => { "127.0.0.1" , "::1" };
trustkeysfrom => { "127.0.0.1" , "::1" };
# Make updates and runs happen in one
cfruncommand => "$(sys.workdir)/bin/cf-agent -f failsafe.cf
&& $(sys.workdir)/bin/cf-agent";
allowusers => { "root" };
}
When I run this I get:
cf3 User root granted connection privileges
cf3 Couldn't resolve filename /opt/cfengine/bin/cf-agent -f
/var/opt/cfengine/inputs/failsafe.cf && /opt/cfengine/bin/cf-agent
from host hosta.domain.com
cf3 (lstat: No such file or directory)
I can see how you would want to limit what can run for security
reasons, but I do like the && function to update the config and run it
at the same time. Saves an extra run before the new config is
executed.
Thanks.
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine