I have a bundle that contains bundle agent cc_nfs_export(dir) { files: "$(sys.exports)" edit_line => cc_doexport("$(def.dir_cruisecontrol)/$(dir)","192.168.159.0/255.255.255.0(rw)"), classes => if_repaired("exportfs_repaired"), comment => "Add missing line(s) to the $(sys.exports) file for CruiseControl", handle => "agent_cc_nfs_export_files_exports"; }
In my cc_doexport I have tried using combinations of insert_lines and delete_lines with delete_select. I have tried simply inserting with whitespace_policy using various settings and the results have always been the new line being added even when one exists with only whitespace differences. The worst case scenario was using whitespace_policy where a new line was added for each export every single time cf-agent ran. Giving up for the night, I'll check back here in the morning. -- Ron Parker Don't type things you find on the Internet into your computer! :(){ :|:&};: _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine