On Fri, Jun 8, 2012 at 6:41 PM, Nick Anderson <n...@cmdln.org> wrote:
> Hey Ron, can you post a self contained example? Here's my minimal test for the eternally growing exports file. # begin test.sh #! /bin/sh printf '/export/dir1\t\t192.168.159.0/255.255.255.0(rw)\n' > /tmp/exports cf-agent -KIf test.cf # duplicates, not matching above cf-agent -KIf test.cf # duplicates, not even matching itself cat /tmp/exports # end test.sh # begin test.cf body common control { bundlesequence => { "test" }; } bundle agent test { files: "/tmp/exports" edit_line => cc_doexport("/export/dir1 192.168.159.0/255.255.255.0(rw)"); # Single tab in the middle of the string } bundle edit_line cc_doexport(line) { insert_lines: "$(line)" whitespace_policy => { "ignore_embedded" }; } #end test.cf -- 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