{"id":20680297,"url":"https://github.com/markwragg/chef-gitsync","last_synced_at":"2025-06-24T15:38:39.580Z","repository":{"id":90780497,"uuid":"57875219","full_name":"markwragg/Chef-GitSync","owner":"markwragg","description":"Chef cookbooks to regularly synchronise selected Git repositories to a local machine","archived":false,"fork":false,"pushed_at":"2016-05-02T09:50:57.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T19:48:59.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markwragg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-02T08:33:35.000Z","updated_at":"2018-04-01T14:57:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"c0779b8a-a7f5-41e9-b0f6-f821ad81536b","html_url":"https://github.com/markwragg/Chef-GitSync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/markwragg/Chef-GitSync","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markwragg%2FChef-GitSync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markwragg%2FChef-GitSync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markwragg%2FChef-GitSync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markwragg%2FChef-GitSync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markwragg","download_url":"https://codeload.github.com/markwragg/Chef-GitSync/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markwragg%2FChef-GitSync/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261704803,"owners_count":23197244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T21:30:48.419Z","updated_at":"2025-06-24T15:38:39.555Z","avatar_url":"https://github.com/markwragg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chef-GitSync Cookbook\r\n\r\nCookbook to synchronise Git repositories to a local disk and ensure they remain in sync.\r\n\r\n## Usage\r\n\r\nIntended 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.\r\n\r\nHowever you can synchronise any branch to any destination so this could have a variety of uses.\r\n\r\n## Chef Zero configuration\r\n\r\n### client.rb\r\n\r\n```\r\ncookbook_path 'C:\\\\Chef\\\\Cookbooks\\\\'\r\njson_attribs 'C:\\\\Chef\\\\attributes.json'\r\nchef_zero.enabled true\r\n```\r\n\r\n### attributes.json\r\n\r\n```\r\n{\r\n\t\"run_list\": [\r\n\t\t\"recipe[chef-client::default]\",\r\n\t\t\"recipe[git::windows]\",\r\n\t\t\"recipe[git-to-disk::default]\"\r\n\t],\r\n\t\"chef_client\": {\r\n\t\t\"interval\": \"1800\"\r\n\t},\r\n\t\"git-to-disk\": {\r\n\t\t\"rootpath\": \"\\\\\\\\yourdomain.local\\\\code\\\\\"\r\n\t}\r\n\t\t\r\n}\r\n```\r\n\r\n##Dependencies\r\n\r\nThe above recipes require the following cookbooks be present:\r\n\r\n- build-essential\r\n- chef_handler\r\n- chef-client\r\n- cron\r\n- dmg\r\n- git\r\n- logrotate\r\n- seven_zip\r\n- windows\r\n- yum\r\n- yum-epel\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkwragg%2Fchef-gitsync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkwragg%2Fchef-gitsync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkwragg%2Fchef-gitsync/lists"}