Forum: Cfengine Help
Subject: Re: simple edit_line
Author: bidwell
Link to topic: https://cfengine.com/forum/read.php?3,19617,19639#msg-19639
I see that there are a number of "extensions" to edit_line in
cfengine_stdlib.cf, but I don't see any of them that do a simple replacement of
string1 with string2.
I have the following:
bundle agent editmyfiles {
vars:
...
files:
.... editing rules for various files
}
bundle edit_line myreplace(oldv,newv){
replace_patterns:
"^.*($(oldv)).*$"
replace_with => "$(newv)";
}
When the "bundle edit_line myreplace..." is added cfengine stops "doing" any of
my editmyfiles rules. It just stops checking. There is probably an error here
someplace, but I can't tell what it is from anything that I can see. I have
run it with "nohup cf-agent -v".
Any ideas? Where do I look next?
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine