https://github.com/markwragg/chef-gitsync
Chef cookbooks to regularly synchronise selected Git repositories to a local machine
https://github.com/markwragg/chef-gitsync
Last synced: about 1 year ago
JSON representation
Chef cookbooks to regularly synchronise selected Git repositories to a local machine
- Host: GitHub
- URL: https://github.com/markwragg/chef-gitsync
- Owner: markwragg
- Created: 2016-05-02T08:33:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-02T09:50:57.000Z (about 10 years ago)
- Last Synced: 2025-03-10T19:48:59.144Z (over 1 year ago)
- Language: Ruby
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Chef-GitSync Cookbook
Cookbook to synchronise Git repositories to a local disk and ensure they remain in sync.
## Usage
Intended to run in a production environment in order to synchronise the master branches of one or more repositories so that when changes are approved and merged they are promoted immediately to Production.
However you can synchronise any branch to any destination so this could have a variety of uses.
## Chef Zero configuration
### client.rb
```
cookbook_path 'C:\\Chef\\Cookbooks\\'
json_attribs 'C:\\Chef\\attributes.json'
chef_zero.enabled true
```
### attributes.json
```
{
"run_list": [
"recipe[chef-client::default]",
"recipe[git::windows]",
"recipe[git-to-disk::default]"
],
"chef_client": {
"interval": "1800"
},
"git-to-disk": {
"rootpath": "\\\\yourdomain.local\\code\\"
}
}
```
##Dependencies
The above recipes require the following cookbooks be present:
- build-essential
- chef_handler
- chef-client
- cron
- dmg
- git
- logrotate
- seven_zip
- windows
- yum
- yum-epel