Is that true there is no "BeginGroupIfLineMatching" edit action? It
is in the documentation.
Here is the output of the cfrun command:
cf:cfengine::/var/cfengine/inputs/cf.fstab:6: Unknown edit action
"BeginGroupIfLineMatching"
cf:cfengine::/var/cfengine/inputs/cf.fstab:11: EndGroup without Begin
cf:cfengine::/var/cfengine/inputs/cf.fstab:12: Editfiles Begin/End
mismatch before or at line
And here the output of my configuration file:
control:
actionsequence = ( editfiles )
editfiles:
{ /etc/fstab
BeginGroupIfLineMatching "^[[:blank:]]prdcvs02"
DeleteLinesContaining "^[[:blank:]]prdcvs02"
LocateLineMatching "^[[:blank:]]/dev/vpath"
IncrementPointer "-1"
InsertLine "prdcvs02:/usr/softwares /mnt/softwares nfs
bg,ro,noauto 0 0"
EndGroup
}
Did I do something wrong?
TIA,
Bern
_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine