This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
gem: --no-ri --no-rdoc | |
benchmark: false | |
verbose: true | |
update_sources: true | |
sources: | |
- http://rubygems.org/ | |
backtrace: true | |
bulk_threshold: 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'uri' | |
require 'httpclient' | |
require 'redis' | |
require 'mw-irc' | |
# First, get an access token for your account on the command line | |
# curl -d '{"scopes":["repo"],"note":"Post-Receive Hooks"}' -u 'username:******' https://api.github.com/authorizations | |
# Paste your access token here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if node.chef_environment != 'development' | |
cookbooks = {} | |
node.cookbook_collection.values.each {|c| cookbooks[c.name.to_s] = c.version.to_s } | |
# See https://github.com/danryan/spice | |
r = gem_package "spice" do | |
version "0.8.0" | |
end | |
r.run_action(:install) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
(C) 2010 Pragmatic Source | |
Farzad FARID <[email protected]> | |
register_chef.py: Register the server being installed on the Chef server | |
We assume that the 'knife' is installed locally on the Cobbler server. | |
Check https://fedorahosted.org/cobbler/wiki/CobblerTriggers for | |
documentation on Cobbler's triggers and API. |