Forum: CFEngine Help Subject: contents of inputs slist Author: hartikka Link to topic: https://cfengine.com/forum/read.php?3,23591,23591#msg-23591
The refrence says the inputs is a list of files. 5.1.4 inputs Type: slist Allowed input range: .* Synopsis: List of additional filenames to parse for promises Example: body common control { inputs => { "update.cf", "library.cf" }; } I'd like to put a directory in the list inputs => { "update.cf", "library.cf", "some_dir/" }; and have every file I put in that dir used as an input. I anticipate adding a number of files one by one over time to 'some_dir' and having cfengine parse promises in those files without my having to add each file explicitly to the inputs list in promises.cf. The files will all be very similar - clones of each other with minor edits. Will this work? Can something like that be done in a different way? Maybe you have to run a command (ls) and the put its output into 'inputs'. I guess that would work. Is it bad form? It would be nice because I don't need to touch promises.cf (where the 'inputs' list is defined) every time I want to add another file. Nor do I have to touch a working file to add the behavior I want to add. Thanks for any guidance. Ron _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine