I am trying to upgrade from 2.1.15 to 2.1.16, but it seems that you can no longer pass variables to the command line in the groups section.
I have attached an example that works on 2.1.15 and fails on 2.1.16.
Was this just a fluke that it worked before, or did something break in the new version?
This is the error I receive now.
cf:cfengine::/tmp/cftest/cfagent.conf:10: ExecResult(/command) must specify an absolute path
<<cfagent.conf.txt>>
Ryan Larson
Unix Administrator
Office 312.362.3311
Cell 773.814.0938
Goldman Sachs Execution and Clearing, LP
control: any:: cfimports = ( "/etc/cfengine/inputs/foc" ) defaultgw = ( "192.168.0.1" ) actionsequence = ( shellcommands )
groups: any:: okgw = ( ReturnsZero(${cfimports}/commands/gateway ${defaultgw} ) ) import: okgw:: ${cfimports}/agents/cf.cfe shellcommands: !okgw:: "/bin/logger 'Default GW Broken'"
_______________________________________________ Bug-cfengine mailing list Bug-cfengine@gnu.org http://lists.gnu.org/mailman/listinfo/bug-cfengine