GithubHelp home page GithubHelp logo

chef-github-hook's Introduction

Chef Github Hook

Will synchronize your chef-repo with a Chef Server.

It assumes that all:

  • Cookbooks
  • Roles
  • Nodes
  • Data Bags
  • Environments

Are 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.