Forum: CFEngine Help
Subject: Re: How to specify default masterfiles directory
Author: phnakarin
Link to topic: https://cfengine.com/forum/read.php?3,26503,26520#msg-26520
Running cf-agent -f without a full path, just only , CFEngine assumes that the
is in /var/cfengine/inputs.
cf-agent -f failsafe.cf == cf-agent -f /var/cfengine/inputs/failsafe.cf
If you have your script somewhere else, let's say /tmp, and you want to run it,
you need to use a full path to that script.
$ cf-agent -f /tmp/xxx.cf
Regarding inputs => {} promises, if you have like the following;
# inside /tmp/xxx.cf
inputs => { "yyy.cf","zzz.cf" };
CFEngine will assume that yyy.cf and zzz.cf is at the same place as xxx.cf (in
/tmp). Otherwise, just calling it from any path you like.
inputs => { "/var/cfengine/inputs/yyy.cf","/var/cfengine/inputs/zzz.cf" };
Cheers,
-- Nakarin
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine