Install and configure etckeeper. Thanks to alekschumakov88 for begining. And thank maintainers from TYPO3 Association:
- Steffen Gebert
- Bastian Bringenberg
- Peter Niederlag
recipe['chef_handler']
recipe['git']
default['etckeeper']['git_host'] = "github.com"
default['etckeeper']['git_port'] = "22"
default['etckeeper']['git_repo'] = "etckeeper"
default['etckeeper']['git_branch'] = node['fqdn']
default['etckeeper']['use_remote'] = true
- 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"
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.
- Use StrictHostKeyChecking for disable authenticity host checking
- 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