[clug] cfengine2 (debian) and max_file_size for editing

Daniel Pittman daniel at rimspace.net
Sun Oct 17 02:54:31 MDT 2010

Andrew Janke <a.janke at gmail.com> writes:
> On Sat, Oct 16, 2010 at 12:32, steve jenkin <sjenkin at canb.auug.org.au> wrote:
>> cfagent wouldn't edit 'php.ini' because it was too large.
>> Have GFI, but haven't seen a work around.
>> Any ideas?
> Just add this to the control section in cfagent.conf (or equivalent).
>    control:
>       # needed for large /etc/services file
>       EditFileSize = ( 20000 )

...though generally speaking you are better installing a file that has the
right content than trying to edit existing files.  The later has a much higher
risk of leading to unintended consequences.

> FWIW, cfengine2 is the bomb (if you ask me) hard to learn but infinitely
> powerful.

I generally recommend puppet, these days, in the role that cfengine2 used to
play.  It is a generally better implementation of the same concepts, with less
rough or unuseful edges for most commercial sites.

(OTOH, I now work for Puppet Labs, so I might be biased. :)

✣ Daniel Pittman            ✉ daniel at rimspace.net            ☎ +61 401 155 707
               ♽ made with 100 percent post-consumer electrons

More information about the linux mailing list