cookbook 'etckeeper', '~> 1.0.4', :supermarket
etckeeper (6) Versions 1.0.4 Follow6
Installs/Configures etckeeper
cookbook 'etckeeper', '~> 1.0.4'
knife supermarket install etckeeper
knife supermarket download etckeeper
Description
Install and configure etckeeper. Thanks to maintainers from TYPO3 Association: * Steffen Gebert * Bastian Bringenberg * Peter Niederlag Thanks to Bernhard Weisshuhn for begininig.
Requirements
recipe['chef_handler']
recipe['git']
Attributes
default['etckeeper']['git_host'] = "github.com"
default['etckeeper']['git_port'] = "22"
default['etckeeper']['git_repo'] = "etckeeper"
default['etckeeper']['git_branch'] = node['fqdn']
default['etckeeper']['git_email'] = "root@#{node['fqdn']}"
default['etckeeper']['daily_auto_commits'] = true
default['etckeeper']['special_file_warning'] = true
default['etckeeper']['commit_before_install'] = true
default['etckeeper']['use_remote'] = true
Usage
- Add to run_list
recipe['etckeeper']
for local using etckeeper - Set
['use_remote']
totrue
for daily auto push to remote:- Make ssh key and copy to
./files/default/etckeeper_key
- Set your
git_host
andgit_port
if your need - Set at atribute for git repo. For example github repo
default['etckeeper']['git_repo'] = "myuser/myrepo.git"
- Make ssh key and copy to
Etckeeper::Commit
This recipe will do two things
- In the beginning of the chef-run, check if
/etc
is unclean. If yes, fail the chef-run. - After the chef-run, a report handler will commit the changes made to
/etc
during this chef-run.
Changelog
1.0.4
Updates from Bernhard Weisshuhn: * switched to berkshelf v3 * added chefspec tests * added rubocop checks * added foodcritic checks * added travis-ci * added serverspec tests * clean up leftovers from old cookbook versions * remove bzr directory (for vcs git) * initialize etckeeper upon installation * set email in git config via attribute
1.0.3
- new attributes, by Yuya.Nishida (@nishidayuya)
- daily_auto_commits
- special_file_warning
- commit_before_install
- gentoo support, by Florian Eitel (@nougad)
- fixes to cron job, by Florian Eitel (@nougad)
- use etckeeper internal cpmmit push functionality, by Florian Eitel (@nougad)
- tighter permissions for /root/.ssh, by Florian Eitel (@nougad)
- removed old chef handler, by @arr-dev
1.0.2
- Use StrictHostKeyChecking for disable authenticity host checking
1.0.1
- Merge with TYPO3
- Remove unnecessary attributes
- Remove manual adding cron task - only change cron.daily screept if use remote
- Change from post-install push - to commit push
- Remove init from config. Now remote checking on etcekeeper commit hook
- Few renames for simple code view
Dependent cookbooks
git >= 0.0.0 |
chef_handler >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.0.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.4 failed this metric
FC064: Ensure issues_url is set in metadata: etckeeper/metadata.rb:1
FC065: Ensure source_url is set in metadata: etckeeper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: etckeeper/metadata.rb:1
FC069: Ensure standardized license defined in metadata: etckeeper/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: etckeeper/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.4 passed this metric
Publish Metric
1.0.4 passed this metric
Supported Platforms Metric
1.0.4 passed this metric
Testing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.4 passed this metric
1.0.4 failed this metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
1.0.4 failed this metric
FC064: Ensure issues_url is set in metadata: etckeeper/metadata.rb:1
FC065: Ensure source_url is set in metadata: etckeeper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: etckeeper/metadata.rb:1
FC069: Ensure standardized license defined in metadata: etckeeper/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: etckeeper/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.0.4 passed this metric
Publish Metric
1.0.4 passed this metric
Supported Platforms Metric
1.0.4 passed this metric
Testing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.4 passed this metric
1.0.4 failed this metric
FC065: Ensure source_url is set in metadata: etckeeper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: etckeeper/metadata.rb:1
FC069: Ensure standardized license defined in metadata: etckeeper/metadata.rb:1
FC072: Metadata should not contain "attribute" keyword: etckeeper/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.0.4 passed this metric
Publish Metric
1.0.4 passed this metric
Supported Platforms Metric
1.0.4 passed this metric
Testing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.4 passed this metric
1.0.4 passed this metric
1.0.4 passed this metric
Testing File Metric
1.0.4 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
1.0.4 passed this metric
1.0.4 failed this metric
1.0.4 passed this metric