Forum: Cfengine Help
Subject: Re: Cfengine Help: Re: what if cf-runagent could be able to call just
one bundle from the bundlesequence?
Author: Seva Gluschenko
Link to topic: https://cfengine.com/forum/read.php?3,19453,19774#msg-19774
Neil,
thank you for pointing this out. Unfortunately, it doesn't fit universally. At
least, it's impossible to call a bundle with args:
# bin/cf-runagent -H status.i -o "-b snmp"
cf3 -> cfServerd Executing /var/cfengine/bin/cf-runagent.sh --inform -b snmp
cf3 -> >> Using command line specified bundlesequence
cf3 -> While constructing scope "snmp"
cf3 -> Formal = {'state'}, Actual = {}
cf3 -> Fatal cfengine error: Augment scope, formal and actual parameter
mismatch is fatal
cf3 !!
or
# bin/cf-runagent -H status.i -o '-b snmp("on")'
cf3 -> cfServerd Executing /var/cfengine/bin/cf-runagent.sh --inform -b
snmp("on")
cf3 -> >> Using command line specified bundlesequence
cf3 -> Bundle "snmp("on")" listed in the bundlesequence was not found
cf3 -> Fatal cfengine error: Errors in agent bundles
cf3 !!
So it seems like until cf-agent arguments parser is fixed, there's no way to
deal with parameterized bundles, i.e. tons of promises must be reworked. It
really makes me sick.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine