Not directly, but you can hardcode a few different paths, then use classes and the -D option to select just one. E.g.
vars: path1:: "path" string => "/a/b/c/test.cf"; path2:: "path" string => "/d/e/f/test.cf"; commands: "$(sys.workdir)/bin/cf-report" args => "-f $(path)" Then invoke cf-agent like this: cf-agent -D path1 or cf-agent -D path2 Not ideal but it works. On Wed, Mar 10, 2010 at 8:48 PM, Anders Bruvik <a.s.bru...@usit.uio.no>wrote: > Is there a way to reference the inputfile from within a > cfengine-configuration, if cf-agent is called with '-f <filename>'? > > I am running a test configuration with > > cf-agent -f testconfig.cf > > inside this configuration, I have a promise of the form: > > commands: > "$(sys.workdir)/bin/cf-report"; > > Now i want to add > args => "-f <filename>" > > where <filename> is a reference to the current configuration. > > -- > Anders Bruvik > Server and Storage Management Group, University of Oslo > a.s.bru...@usit.uio.no > > > > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine >
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine