Skip to content

Instantly share code, notes, and snippets.

View bradphelan's full-sized avatar

Brad Phelan bradphelan

View GitHub Profile
root@ip-10-228-74-131:/tmp/ohai/ohai# rake gems
(in /tmp/ohai/ohai)
rake aborted!
no such file to load -- spec/rake/spectask
/tmp/ohai/ohai/Rakefile:5
(See full trace by running task with --trace)
root@ip-10-228-75-101:/tmp/ohai# ohai domain
/usr/lib/ruby/1.8/logger.rb:314:in `<': comparison of Fixnum with :info failed (ArgumentError)
from /usr/lib/ruby/1.8/logger.rb:314:in `add'
from /usr/lib/ruby/1.8/logger.rb:348:in `debug'
from /usr/lib/ruby/gems/1.8/gems/mixlib-log-1.0.3/lib/mixlib/log.rb:70:in `send'
from /usr/lib/ruby/gems/1.8/gems/mixlib-log-1.0.3/lib/mixlib/log.rb:70:in `method_missing'
from /usr/lib/ruby/gems/1.8/gems/ohai-0.3.7/lib/ohai/system.rb:192:in `require_plugin'
from /usr/lib/ruby/gems/1.8/gems/ohai-0.3.7/lib/ohai/system.rb:182:in `each'
from /usr/lib/ruby/gems/1.8/gems/ohai-0.3.7/lib/ohai/system.rb:182:in `require_plugin'
from /usr/lib/ruby/gems/1.8/gems/ohai-0.3.7/lib/ohai/system.rb:116:in `all_plugins'
^[[Aroot@ip-10-228-75-101:~# . install.sh 2>&1 | tee log
Hit http://ppa.launchpad.net jaunty Release.gpg
Ign http://ppa.launchpad.net jaunty/main Translation-en_US
Hit http://security.ubuntu.com jaunty-security Release.gpg
Ign http://security.ubuntu.com jaunty-security/main Translation-en_US
Hit http://ppa.launchpad.net jaunty Release
Ign http://security.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://security.ubuntu.com jaunty-security/universe Translation-en_US
Ign http://security.ubuntu.com jaunty-security/multiverse Translation-en_US
Hit http://security.ubuntu.com jaunty-security Release
# site-cookbooks/awssecrets/attrbutes/default.rb
# Trying to provide a common recipe and error checking
# to make sure the AWS secrets are there.
if not self.key? :awssecrets or not self[:awssecrets].key? :access_key or not self[:awssecrets].key? :secret_key
raise <<-EOF
Please set the awssecrets[:accesskey] and awssecrets[:secretkey] attributes
EOF
end
# 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 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
merb : worker (port 4002) ~ Routed to: {"format"=>nil, "submit"=>"Save Client", "regen_private_key"=>"1", "action"=>"update", "_method"=>"put", "id"=>"app-server", "controller"=>"chef_server_webui/clients"}
merb : worker (port 4002) ~ Params: {"format"=>nil, "submit"=>"Save Client", "regen_private_key"=>"1", "action"=>"update", "_method"=>"put", "id"=>"app-server", "controller"=>"chef_server_webui/clients"}
INFO: Creating new key pair for app-server
WARN: HTTP Request Returned 403 Forbidden: Client already exists
ERROR: Received 403 Forbidden against localhost:4000 for /clients, retry 1/5
WARN: HTTP Request Returned 403 Forbidden: Client already exists
ERROR: Received 403 Forbidden against localhost:4000 for /clients, retry 2/5
WARN: HTTP Request Returned 403 Forbidden: Client already exists
ERROR: Received 403 Forbidden against localhost:4000 for /clients, retry 3/5
WARN: HTTP Request Returned 403 Forbidden: Client already exists
template "/etc/resolv.conf" do
source "resolv.conf.bootstrap.erb"
variables :nameserver => nameserver
mode "644"
owner "root"
group "root"
end
[Mon, 08 Mar 2010 13:21:25 +0000] DEBUG: Looking for host-ip-10-228-235-102.eu-west-1.compute.internal/couchdb_local.ini.erb
[Mon, 08 Mar 2010 13:21:25 +0000] DEBUG: Looking for ubuntu-9.10/couchdb_local.ini.erb
[Mon, 08 Mar 2010 13:21:25 +0000] DEBUG: Looking for ubuntu/couchdb_local.ini.erb
[Mon, 08 Mar 2010 13:21:25 +0000] DEBUG: Looking for default/couchdb_local.ini.erb
[Mon, 08 Mar 2010 13:21:25 +0000] DEBUG: Using local file for template:/etc/chef/site-cookbooks/service_bus/templates/default/couchdb_local.ini.erb
[Mon, 08 Mar 2010 13:21:25 +0000] INFO: Creating template[/etc/couchdb/local.ini] at /etc/couchdb/local.ini
[Mon, 08 Mar 2010 13:21:25 +0000] INFO: template[/etc/couchdb/local.ini] sending restart action to service[couchdb] (immediate)
[Mon, 08 Mar 2010 13:21:25 +0000] DEBUG: service[couchdb] using Chef::Provider::Service::Debian
[Mon, 08 Mar 2010 13:21:25 +0000] WARN: service[couchdb]: falling back to process table inspection
[Mon, 08 Mar 2010 13:21:25 +0000] WARN: service[couchdb]: attempting
ubuntu@ip-10-228-235-102:~$ cat /etc/chef/solo.rb
cookbook_path [ "/etc/chef/cookbooks", "/etc/chef/site-cookbooks"]
role_path "/etc/chef/roles"
log_level :info
ubuntu@ip-10-228-235-102:~$ cat /etc/chef/dna.json
{
[Mon, 08 Mar 2010 19:06:57 +0000] DEBUG: Executing /etc/init.d/rabbitmq-server status
[Mon, 08 Mar 2010 19:06:57 +0000] DEBUG: ---- Begin output of /etc/init.d/rabbitmq-server status ----
[Mon, 08 Mar 2010 19:06:57 +0000] DEBUG: STDOUT: Status of all running nodes...
Node ''rabbit@ip-10-224-107-182'' with Pid 8177: running
done.
[Mon, 08 Mar 2010 19:06:57 +0000] DEBUG: STDERR:
[Mon, 08 Mar 2010 19:06:57 +0000] DEBUG: ---- End output of /etc/init.d/rabbitmq-server status ----
[Mon, 08 Mar 2010 19:06:57 +0000] DEBUG: Ran /etc/init.d/rabbitmq-server status returned 0
[Mon, 08 Mar 2010 19:06:57 +0000] DEBUG: service[rabbitmq-server]: not disabling, already disabled