On 03/03/2011 14:09, Max Ivanov wrote: > How do you test your promises? > I've copied everyting from masterfiles into separate dir, edited few > things and then execute them using "cf-exec -v -f" but according to > output it executes things in "inputs" directory, not in my copy.
That should be "cf-execd -v -f ./promises.cf". Note the "./" to indicate to Cfengine that the path is relative to the local directory - by default it takes relative paths from the workdir (ie /var/cfengine). Back to your original question, I usually use cf-promises, then copy the promises to a dedicated test machine and run them there, usually with cf-agent -v. Then I study the full output, and make sure what I was trying to achieve works... Then, just as Mark said, roll out the promises to a small set of not-quite-as-critical-as-the-others machines, then widen it, etc. Jonathan -- ========================================== Jonathan CLARKE ------------------------------------------ Normation 44 rue Cauchy, 94110 Arcueil, France ------------------------------------------ Telephone: +33 (0)1 83 62 41 24 ------------------------------------------ Web: http://www.normation.com/ ========================================== _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine