Questions tagged [etckeeper]

etckeeper is a tool to monitor changes to /etc with revision control systems such as git

The upside of etckeeper is the integration in various package managers such as apt or rpm. etckeeper is written in sh, supports own "plugins" via hooks and various revision control systems, including git, mercurial, bazaar, or darcs.

Usually it monitors /etc, but it can be configured to monitor other directorys as well.

22 questions
2
votes
1 answer

Can we get git-like functionality with a tool like puppet?

I'm thinking about a convenient way to track my vps configurations and to deploy them in one click (or more or less one). I have been reading up and looking into different config deployment tools of which puppet seems to be the most popular, only to…
user68729
1
vote
1 answer

Sortable list of all packages (dpkg)

I want to dump all installed packages on a system which uses dpkg. Up to now I use dpkg -l. But it has one draw back: Sorting the result does not make sense. Head: root@aptguettler:~# LANG=C dpkg-query -l| sort |…
guettli
  • 3,591
  • 17
  • 72
  • 123
1
vote
1 answer

Log hwinfo output with etckeeper

I like etckeeper. It does store the etc/ directory in a git repository. This way I have a nice history of what changed. Of course we have backups, but this is convenient. I would like to store additional data like the output of hwinfo --all. The…
guettli
  • 3,591
  • 17
  • 72
  • 123
0
votes
1 answer

Install etckeeper via ansible, and perform first commit at end of playbook

I'm using ansible to provision a server. One of the roles installs etckeeper, which automatically creates the git repo and makes the first commit. If many tasks run after that (which install via apt or perform configuration changes), then the repo…
lonix
  • 896
  • 10
  • 23
0
votes
2 answers

SaltStack: Do "etckeeper init" if /etc/.git is not there

I want to deploy the tool etckeeper via SaltStack. Installating the RPM/DPKG is easy. Next step is to call etckeeper init after the installation. My current idea is this pseudo-code: execute etckeeper init if /etc/.git does not exist I read the…
guettli
  • 3,591
  • 17
  • 72
  • 123
0
votes
1 answer

Resolve a contradictory conflict in /etc tree (mercurial-based etckeeper)

I have an /etc file tree which is managed by etckeeper, based on Mercurial. After running apt-get dist-upgrade, I want to revision the changes which have been applied by the upgrade. However, when doing hg add $(hg status . --unknown --no-status) I…
Tobias
  • 165
  • 1
  • 9
-4
votes
1 answer

etckeeper user and system diffs

I'm looking for a way to keep user and system-made changes to /etc using etckeeper seperate automatically. Basically different commits for user and system. I'm sure many other sysadmins could benefit from this too. To clarify, each server has…
jiriki
  • 1
  • 1
1
2