I just tried to use CFEngine to edit /etc/services and it refused:
!! File /etc/services is bigger than the limit edit.max_file_size =
362149 > 100000 bytes
File /etc/services was marked for editing but could not be opened
I found the file size is configurable -- is there anything to watch
out for in bumping this up? Why is there a limit?
Best,
Aleksey
Reference manual states:
5.2.17 editfilesize
Type: int
Allowed input range: 0,99999999999
Default value: 10000
Synopsis: Integer limit on maximum text file size to be edited
Example:
body agent control
{
editfilesize => "120k";
}
Notes:
The global setting for the file-editing safety-net (this value may be
overridden on a per-promise basis with max_file_size, See
edit_defaults in files. The default value for editfilesize is 100k.
Note the use of special units is allowed, See Datatypes in CFEngine 3,
for a list of permissible suffixes.
_______________________________________________
Help-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/help-cfengine