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 install cucumber merb-core jeweler uuidtools json libxml-ruby --no-ri --no-rdoc | |
mkdir ~/src | |
cd ~/src | |
git clone git://github.com/opscode/chef.git | |
git clone git://github.com/opscode/ohai.git |
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
merb : worker (port 4000) ~ Started request handling: Tue Apr 20 21:50:02 +0000 2010 | |
merb : worker (port 4000) ~ Routed to: {"action"=>"cookbooks", "id"=>"osmunda.xxxxxx.com", "controller"=>"chef_server_api/nodes"} | |
merb : worker (port 4000) ~ Params: {"action"=>"cookbooks", "id"=>"osmunda.xxxxxx.com", "controller"=>"chef_server_api/nodes"} | |
merb : worker (port 4000) ~ marshal data too short - (ArgumentError) | |
/var/lib/gems/1.8/gems/moneta-0.6.0/lib/moneta/basic_file.rb:53:in `load' | |
/var/lib/gems/1.8/gems/moneta-0.6.0/lib/moneta/basic_file.rb:53:in `raw_get' | |
/var/lib/gems/1.8/gems/moneta-0.6.0/lib/moneta/basic_file.rb:41:in `[]' | |
/var/lib/gems/1.8/gems/moneta-0.6.0/lib/moneta/../moneta.rb:69:in `fetch' | |
/var/lib/gems/1.8/gems/chef-0.8.10/lib/chef/cache/checksum.rb:37:in `lookup_checksum' | |
/var/lib/gems/1.8/gems/chef-0.8.10/lib/chef/cache/checksum.rb:33:in `checksum_for_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
merb : worker (port 4000) ~ Started request handling: Tue Apr 20 22:12:48 +0000 2010 | |
merb : worker (port 4000) ~ Routed to: {"fqdn"=>"onoclea.xxxxxx.com", "cookbook_id"=>"shorewall", "action"=>"show_segment", "id"=>"restored.erb", "checksum"=>"9dcaedd6ff137c8f67ab05017694f8dab055de56d630a32f997c5ac2daca6882", "version"=>"9.10", "controller"=>"chef_server_api/cookbooks", "node_name"=>"onoclea.xxxxxx.com", "segment"=>"templates", "platform"=>"ubuntu"} | |
merb : worker (port 4000) ~ Params: {"fqdn"=>"onoclea.xxxxxx.com", "cookbook_id"=>"shorewall", "action"=>"show_segment", "id"=>"restored.erb", "checksum"=>"9dcaedd6ff137c8f67ab05017694f8dab055de56d630a32f997c5ac2daca6882", "version"=>"9.10", "controller"=>"chef_server_api/cookbooks", "node_name"=>"onoclea.xxxxxx.com", "segment"=>"templates", "platform"=>"ubuntu"} | |
merb : worker (port 4000) ~ File restored.erb has not changed - (Merb::ControllerExceptions::NotModified) | |
/var/lib/gems/1.8/gems/chef-server-api-0.8.10/app/controllers/cookbooks.rb:100:in `serve_segment_p |
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
ssh to chef server | |
run irb | |
Dir['/var/chef/cache/checksums/*'].each {|f|puts f; Marshal.load(IO.read(f))} | |
when irb spews error delete file it spews about | |
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
# FILES AND DIRS | |
def_dynamic_command(:remove_file, 'rm <%= data[:target] %>', *@@popen_args) | |
def_dynamic_command(:copy_file, 'cp <%= data[:source] %> <%= data[:target] %>', *@@popen_args) | |
def_dynamic_command(:mklink, 'ln -s <%= data[:source] %> <%= data[:target] %>', *@@popen_args) | |
def_dynamic_command(:mkdir, 'mkdir <%= data[:target] %>', *@@popen_args) | |
def_dynamic_command(:rmdir, 'rm -rf <%= data[:target] %>', *@@popen_args) | |
def_dynamic_command(:read_file, "cat <%= data[:filename] %>", *@@popen_args) | |
def_dynamic_command(:catfile, "cat > <%= data[:filename] %> <<EOF\n<%= data[:content] %>\nEOF", *@@popen_args) | |
def_dy |
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
>> Writing PID to /var/run/chef/thin-webui.30000.pid | |
Loading init file from /var/lib/gems/1.8/gems/chef-server-webui-0.8.10/config/init.rb | |
~ Loaded slice 'ChefServerWebui' ... | |
/var/lib/gems/1.8/gems/ruby-openid-2.1.7/lib/openid.rb:16: warning: already initialized constant VERSION | |
/usr/lib/ruby/1.8/cgi.rb:279: warning: already initialized constant CR | |
/usr/lib/ruby/1.8/cgi.rb:282: warning: already initialized constant LF | |
/usr/lib/ruby/1.8/cgi.rb:285: warning: already initialized constant EOL | |
/usr/lib/ruby/1.8/cgi.rb:287: warning: already initialized constant REVISION | |
/usr/lib/ruby/1.8/cgi.rb:292: warning: already initialized constant PATH_SEPARATOR | |
/usr/lib/ruby/1.8/cgi.rb:313: warning: already initialized constant HTTP_STATUS |
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
# | |
# Chef Server Config File | |
# | |
# Dynamically generated by Chef - local modifications will be replaced | |
log_level :info | |
log_location "/var/log/chef/server.log" | |
ssl_verify_mode :verify_none | |
chef_server_url "https://bootstrap01.xxxxxx.xxx:444" |
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
server { | |
listen 80; | |
server_name servername.example.com; | |
access_log /var/log/nginx/localhost.access.log; | |
location / { | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
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
--- transmission-1.92.orig/daemon/daemon.c 2010-05-18 15:14:58.346494098 -0400 | |
+++ transmission-1.92/daemon/daemon.c.1.92 2010-05-18 10:16:47.866492702 -0400 | |
@@ -43,6 +43,7 @@ | |
static tr_bool paused = FALSE; | |
static tr_bool closing = FALSE; | |
static tr_session * mySession = NULL; | |
+char *PIDFILE; | |
/*** | |
**** Config 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
--- transmission-1.92/daemon/daemon.orig.c.v1.92 2010-05-20 23:15:45.686493465 -0400 | |
+++ transmission-1.92/daemon/daemon.c 2010-05-20 23:39:59.187742392 -0400 | |
@@ -43,6 +43,7 @@ | |
static tr_bool paused = FALSE; | |
static tr_bool closing = FALSE; | |
static tr_session * mySession = NULL; | |
+static const char * pid_filename = NULL; | |
/*** | |
**** Config File |
OlderNewer