Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adamhjk/chef-github-hook
An experimental chef-github-hook
https://github.com/adamhjk/chef-github-hook
Last synced: about 2 months ago
JSON representation
An experimental chef-github-hook
- Host: GitHub
- URL: https://github.com/adamhjk/chef-github-hook
- Owner: adamhjk
- License: apache-2.0
- Created: 2012-10-06T06:24:53.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-06T06:25:18.000Z (almost 12 years ago)
- Last Synced: 2024-07-27T18:54:40.320Z (about 2 months ago)
- Language: Ruby
- Size: 104 KB
- Stars: 24
- Watchers: 6
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Chef Github Hook
Will synchronize your chef-repo with a Chef Server.
It assumes that all:
* Cookbooks
* Roles
* Nodes
* Data Bags
* EnvironmentsAre controlled via git. Anything not in your repo will be deleted.
# Start the service
You can start the service with:
env CHEF_REPO_DIR=YOUR_CHEF_REPO_PATH ./bin/chef-github-hook
Replace YOUR_CHEF_REPO_PATH with, um.. the path to the chef
repo you want to manage. Assumes you have a working .chef/knife.rb
file inside that repository.# When github sends you a message..
We will pull the updates from github, checkout the "after"
commit in the payload, and synchronize the above.# How does this work for nodes?
We load every node in a loop. If a file exists that is the node
name ending with ".rb", we will instance-eval that file in the
context of the node we fetched.# How ready is this code?
Not at all. I've actually never even run it. Pretty sure it'll
almost work, though.# Is this officially supported by Opscode?
Not at all.
# License
See the LICENSE file - Apache 2. Copyright Adam Jacob.