- Overview
- Module Description
- Setup - The basics of getting started with etckeeper
- Usage - Configuration options and additional functionality
- Reference
- Limitations
- Copyright and License
Manage etckeeper to keep /etc under git version control.
This module installs and configures etckeeper with git as the version control backend.
etckeeper automatically commits changes to /etc on package installations and provides
a daily cronjob for uncommitted changes.
- The
etckeeperandgitpackages. - The etckeeper configuration file at
/etc/etckeeper/etckeeper.conf. - Initializes a git repository in
/etcviaetckeeper init. - Optionally configures git user name and email in
/etc/.git/config. - Optionally manages additional entries in
/etc/.gitignore.
Please review metadata.json for a list of requirements.
On RHEL-based systems, the EPEL repository is required as etckeeper is not available in the base repositories.
include etckeeper is all you need to get it running.
All interaction with the etckeeper module can be done through the main etckeeper class. Parameters are configured via Hiera.
include etckeeperetckeeper::vcs_user_name: 'root'
etckeeper::vcs_user_email: 'root@example.com'etckeeper::gitignore_entries:
- '*.secret'
- 'ssl/private/'etckeeper::avoid_daily_autocommits: trueetckeeper::push_remotes:
- 'origin'etckeeper::git_commit_options: '--no-gpg-sign'Reference documentation is generated using puppet-strings and available in REFERENCE.md.
See metadata.json for supported and tested operating systems.
This module is distributed under the MIT License.