Hi list,
I have some troubles with my cfengine policy that I have isolated in this
example. When I run this policy cfengine tells me that my promise have been
repaired.
# cf-agent -vKf ./test.cf
..
[snip]
Promises observed to be kept 67%, Promises repaired 33%, Promises not repaired
0%
If I edit my target file to make cf-agent change it back I get:
Promises observed to be kept 25%, Promises repaired 75%, Promises not repaired
0%
Should promises always be marked as repaired even tough no change was made when
using empty_file_before_editing => "true"?
I have tested this on 3.0.2, 3.0.3 and trunk ( rev 715 ) versions of cfengine
Best regards,
Andreas Larsson
body common control {
bundlesequence => { "test" };
}
bundle agent test {
files:
"/tmp/foobar"
edit_defaults => wipe_file,
edit_line => testedit;
}
body edit_defaults wipe_file
{
empty_file_before_editing => "true";
}
bundle edit_line testedit
{
insert_lines:
"blabla";
}
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine