Questions tagged [etckeeper]

etckeeper is a tool for using a version control system to store server configuration in git.

Filter by
Sorted by
Tagged with
0 votes
1 answer
471 views

How can I fix etckeeper or uninstall it so apt will install / remove new packages?

OS: Debian Buster 10.10 inside lxc I am attempting to install a new package (I tried different packages) and apt (and DPkg) is complaining with the following error message(s): /etc/etckeeper/pre-...
Wilhelm de Fheur Gorm's user avatar
1 vote
1 answer
589 views

Push etckeeper created repository to remote Gitlab server, advices welcomed

I'm playing with etckeeper and it seems to be a good product. I use it only to track /etc filesystem locally, but these days the idea came to my mind - to create central Gitlab repository and to store ...
Kristian Kirilov's user avatar
1 vote
1 answer
877 views

Connecting to SSH authentication agent when running commands with sudo

I use etckeeper to keep my various OS configurations under version control. Until now, I was content to just use a local Git repository to keep track of changes but it occurred to me that I wasn’t ...
Anthony Geoghegan's user avatar
1 vote
1 answer
334 views

Where is official documentation about locking mechanisms for etckeeper, apt, and/or dpkg?

Context: Want to put a lock on etckeeper/apt hook activity during special backup. Objective is to preserve whole package integrity, e.g., wait until any package installation is complete, and then ...
Craig  Hicks's user avatar
2 votes
0 answers
105 views

Debian/Ubuntu apt pre-install hook for logging/commit messages? [duplicate]

This is related to Create meaningful etckeeper commit messages. I've patched /etc/etckeeper/pre-install.d/50uncommitted-changes as follows (to add support for a "PRECOMMIT" file): #!/bin/sh set -e ...
Jim Dennis's user avatar
-1 votes
1 answer
95 views

How to view all unregistered files and directories of etckeeper (basically .gitignore)?

From here I learned that etckeeper doesn't exclude files via the usual .gitignore file. How can I view which directories and files are excluded from it? I'm using Debian 9.1 with KDE.
mYnDstrEAm's user avatar
  • 4,248
1 vote
1 answer
100 views

Is it possible to view past versions of files after a renewed etckeeper init?

So as the terminal was telling me that /etc wasn't a git repository after running git status and gitk resolv.conf & I made a mistake and ran sudo etckeeper init and sudo etckeeper commit "Initial ...
mYnDstrEAm's user avatar
  • 4,248
1 vote
2 answers
2k views

How can I view diffs or at least older versions of specific files with etckeeper?

So I'm using etckeeper on my machine running Debian 9.1 with KDE and would like to view diffs (or if that isn't yet implemented: past versions) of specific files. How can I do that?
mYnDstrEAm's user avatar
  • 4,248
1 vote
1 answer
406 views

ansible role: Why do I have to set user.email in etckeeper?

I wrote a ansible role to automate installing etckeeper. I discover that git will complain if I haven't configured user.email. In some circumstances, git commits will fail. This includes automatic ...
sourcejedi's user avatar
  • 50.4k
4 votes
1 answer
558 views

Create meaningful etckeeper commit messages

I want to keep track of the /etc changes with etckeeper Unfortunately, the commit messages are the same for all commits saving uncommitted changes in /etc prior to emerge run I wish there would be ...
Jonas Stein's user avatar
  • 4,088
4 votes
1 answer
516 views

Update and commit changed file permissions in etckeeper

Say I had to change the permissions of some file in /etc/ssl to allow a program to read a private key file: $ cd /etc $ chgrp ssl-cert ssl/private/key.pem $ chmod g+r ssl/private/key.pem $ git status ...
Fritz's user avatar
  • 708
3 votes
2 answers
338 views

Let etckeeper monitor /var/spool/cron too

etckeeper should log all config changes on a system. But there is one important setting that is outside of /etc/: crontab -e edits a file inside: /var/spool/cron/crontab/ so there are important config ...
rubo77's user avatar
  • 29k
4 votes
1 answer
804 views

How to make clean commits with etckeeper?

I would like to make clean commits with etckeeper. Here is what happens: 1) Check the status of the repository : git status On branch master nothing to commit, working directory clean 2) Modify a ...
Ortomala Lokni's user avatar
2 votes
0 answers
428 views

Rollback misconfigured network settings in systemd using etckeeper?

I was thinking how to automatically rollback network misconfigurations with etckeeper and systemd. Workflow: # etckeeper commit # $EDITOR /etc/systemd/network/wired.network # systemctl restart ...
raspi's user avatar
  • 1,376
0 votes
1 answer
53 views

Will etckeeper do auto-commits when PackageKit-hif is used [i.e. Fedora Workstation]?

[etckeeper] hooks into package managers like apt to automatically commit changes made to /etc during package upgrades [to a git repository] Fedora uses libhif as a backend for PackageKit tools, such ...
sourcejedi's user avatar
  • 50.4k
2 votes
0 answers
67 views

Using gitk to view changesets in a linux server using etckeeper?

gitk is a pretty good tool for viewing changesets in a git repository. Is there any way to use it locally on my workstation to view/review an etckeeper git repository on a remote server? Also ...
leeand00's user avatar
  • 4,625
1 vote
1 answer
669 views

Is it always necessary to run etckeeper git commands using the vcs command?

I've seen some tutorials on the internet in which people are using etckeeper to keep a log of their server configuration, and yet they use the git command directly instead of running it through the ...
leeand00's user avatar
  • 4,625
2 votes
1 answer
430 views

What directory does etckeeper store its permissions / metadata in?

In what directory does etckeeper store its metadata and permissions in? I want to know for purposes of testing the restoration of a configuration.
leeand00's user avatar
  • 4,625
2 votes
0 answers
136 views

How do I know when what I should store in my external to /etc configurations in etckeeper?

I read about the ability to store configuration files that live outside of /etc here, and I tested it out on a test server, and it appears to work. One thing that I'm having a bit of an issue with ...
leeand00's user avatar
  • 4,625