I just started skimming over the COPBL and wanted to perhaps kick off a suggestions thread:
body depth_search infinite { depth => "inf"; } I couldn't think of a good name for this next one, but it would ensure that only a single specified line of text is in a file, only deleting what doesn't match and leaving the one line alone if it does. Useful for one-line files like Solaris' /etc/nodename or /etc/hostname.eg0, etc. This way, if the file is correct, no repairs are necessary, but if it has the correct line but other junk also, just the junk gets removed and keeps the promise repair percentage more accurate. bundle edit_line one_line_only(text) { delete_lines: "$(text)" not_matching => "true"; insert_lines: "$(text)"; } Justin This electronic communication and any attachments may contain confidential and proprietary information of DigitalGlobe, Inc. If you are not the intended recipient, or an agent or employee responsible for delivering this communication to the intended recipient, or if you have received this communication in error, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this communication in error, and delete the copy you received. DigitalGlobe reserves the right to monitor any electronic communication sent or received by its employees, agents or representatives. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine