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
#!/usr/bin/ruby | |
require 'rubygems' | |
require 'thor' | |
require 'chef' | |
require 'chef/node' | |
require 'chef/rest' | |
Chef::Config.from_file("/etc/chef/server.rb") | |
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
[Wed, 29 Apr 2009 15:08:06 +0200] INFO: Starting Chef Solo Run | |
[Wed, 29 Apr 2009 15:08:06 +0200] INFO: Installing package[runit] version 2.0.0-1ubuntu2 | |
[Wed, 29 Apr 2009 15:08:12 +0200] INFO: Installing package[couchdb] version 0.8.0-2 | |
[Wed, 29 Apr 2009 15:08:54 +0200] INFO: Installing gem_package[stompserver] version 0.9.9 | |
[Wed, 29 Apr 2009 15:09:13 +0200] INFO: Creating directory[/etc/sv/stompserver] at /etc/sv/stompserver | |
[Wed, 29 Apr 2009 15:09:13 +0200] INFO: Setting mode to 755 for directory[/etc/sv/stompserver] | |
[Wed, 29 Apr 2009 15:09:13 +0200] INFO: Creating directory[/etc/sv/stompserver/log] at /etc/sv/stompserver/log | |
[Wed, 29 Apr 2009 15:09:13 +0200] INFO: Setting mode to 755 for directory[/etc/sv/stompserver/log] | |
[Wed, 29 Apr 2009 15:09:13 +0200] INFO: Creating directory[/etc/sv/stompserver/log/main] at /etc/sv/stompserver/log/main | |
[Wed, 29 Apr 2009 15:09:13 +0200] INFO: Setting mode to 755 for directory[/etc/sv/stompserver/log/main] |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'thor' | |
require 'chef' | |
require 'chef/node' | |
require 'chef/rest' | |
# Please see the readme for overview documentation. | |
# |
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 'rubygems' | |
require 'json' | |
my_ssh_keys = [ | |
'ssh-rsa blah1', | |
'ssh-rsa blah1' | |
] | |
other_guy_ssh_keys = [ | |
'ssh-rsa blah1' |
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
$ bin/shef | |
Loading Node Data | |
Ohai2u! | |
chef > recipe | |
=> :recipe | |
chef:recipe > file "/tmp/foo" | |
=> #<Chef::Resource::File:0x1c3cd2c @provider=nil, @not_if=nil, @params={}, @recipe_name=nil, @action="create", @source_line="/Users/danielsdeleo/ruby/shef/(irb) line 2", @actions={}, @ignore_failure=false, @name="/tmp/foo", @cookbook_name=nil, @enclosing_provider=nil, @resource_name=:file, @before=nil, @supports={}, @backup=5, @allowed_actions=[:nothing, :create, :delete, :touch, :create_if_missing], @path="/tmp/foo", @only_if=nil, @noop=nil, @updated=false, @node=eigenstate.local, @collection=#<Chef::ResourceCollection:0x1c4f328 @insert_after_idx=nil, @resources=[#<Chef::Resource::File:0x1c3cd2c ...>], @resources_by_name={"file[/tmp/foo]"=>0}>> | |
chef:recipe > run_chef | |
[Tue, 03 Nov 2009 22:16:27 -0700] DEBUG: Processing file[/tmp/foo] | |
[Tue, 03 Nov 2009 22:16:27 -0700] DEBUG: file[/tmp/foo] using Chef::Provider::File |
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
# see http://ole-martin.net/hbase-tutorial-for-beginners/ | |
require 'java' | |
require 'hbase-0.20.2.jar' | |
require 'lib/zookeeper-3.2.1.jar' | |
require 'lib/commons-logging-1.0.4.jar' | |
require 'lib/commons-logging-api-1.0.4.jar' | |
require 'lib/hadoop-0.20.1-hdfs127-core.jar' | |
require 'lib/log4j-1.2.15.jar' |
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
typedef enum _S3OperationState { | |
S3OperationPending = 1, | |
S3OperationActive = 2, | |
S3OperationPendingRetry = 3, | |
S3OperationCanceled = 4, | |
S3OperationDone = 5, | |
S3OperationError = 6 | |
} S3OperationState; | |
@class S3Operation; |
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
typedef enum _S3OperationState { | |
S3OperationPending = 1, | |
S3OperationActive = 2, | |
S3OperationPendingRetry = 3, | |
S3OperationCanceled = 4, | |
S3OperationDone = 5, | |
S3OperationError = 6 | |
} S3OperationState; | |
@class S3Operation; |
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
typedef enum _S3OperationState { | |
S3OperationPending = 1, | |
S3OperationActive = 2, | |
S3OperationPendingRetry = 3, | |
S3OperationCanceled = 4, | |
S3OperationDone = 5, | |
S3OperationError = 6 | |
} S3OperationState; | |
@class S3Operation; |
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
# ec2 ami-1515f67c | |
sudo sed -i 's/universe/multiverse universe/' /etc/apt/sources.list | |
sudo apt-get update | |
sudo apt-get install -y ruby ruby1.8-dev libopenssl-ruby1.8 rdoc ri irb build-essential wget ssl-cert rubygems git-core rake librspec-ruby libxml-ruby thin couchdb zlib1g-dev libxml2-dev | |
sudo gem sources -a http://gems.opscode.com | |
sudo gem sources -a http://gemcutter.org # for nanite | |
sudo gem install cucumber merb-core nanite jeweler uuidtools json libxml-ruby --no-ri --no-rdoc | |
mkdir ~/src | |
cd ~/src | |
git clone git://github.com/opscode/chef.git |
OlderNewer