Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [etckeeper]

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

0
votes
1answer
127 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 ...
1
vote
1answer
48 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 ...
2
votes
0answers
38 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 ...
-1
votes
1answer
37 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.
0
votes
1answer
40 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 ...
0
votes
2answers
441 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?
1
vote
1answer
190 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 ...
2
votes
1answer
270 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 ...
3
votes
1answer
237 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 ...
3
votes
1answer
151 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/ so there are important config files ...
3
votes
1answer
237 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 ...
2
votes
0answers
123 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 ...
0
votes
1answer
37 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 ...
2
votes
0answers
51 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 ...
1
vote
1answer
436 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 ...
1
vote
1answer
295 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.
2
votes
0answers
99 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 ...