[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#579453: etckeeper: Provide support for hourly autocommits?



Control: tags -1 +wontfix

On Tue, Apr 27, 2010 at 09:29:48PM +0200, Petter Reinholdtsen wrote:
> When several system administrators work on the same machine, and when
> changes in /etc/ can happen automatically based on cfengine runs or
> cron jobs, it is very useful to be able to see when in the day a
> change was introduced in /etc/ without depending on manual commits.

I agree with Joey's analysis: doing hourly commits seems like a little
overkill, and I think the daily policy is a fine default.

Besides, it's policy: if we change it to hourly, someone will yell that
we should change it back to daily. :)

Since you use cfengine, you should be able to easily change that
configuration, and it will be retained on upgrades. Furthermore, I
encourage you to install pre/post hooks in your configuration management
engine instead of relying on cron jobs.

For example, at work, we have the following hooks in our puppet client
configuration:

prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post

both hooks basically call "etckeeper commit" after ensuring the
environment is sane.

A.

Attachment: signature.asc
Description: Digital signature


Reply to: