Skip to content

Instantly share code, notes, and snippets.

c:\ruby>chef-solo -c x:\windows.rb -j x:\windows.js
[Mon, 10 May 2010 18:06:10 +0100] INFO: Starting Chef Solo Run
[Mon, 10 May 2010 18:06:46 +0100] INFO: Replacing the run_list with ["recipe[tertiary]"] from JSON
[Mon, 10 May 2010 18:06:46 +0100] FATAL: BUGBUG: cookbook_path: x:/tmp/win-cook
[Mon, 10 May 2010 18:06:46 +0100] FATAL: BUGBUG: cb path not empty: x:/tmp/win-cook
[Mon, 10 May 2010 18:06:46 +0100] INFO: our tertiary recipe
[Mon, 10 May 2010 18:06:46 +0100] INFO: Chef Run complete in 35.479 seconds
# Author:: Adam Jacob <[email protected]>
# Author:: Joshua Timberman <[email protected]>
#
# Copyright 2009-2010, Opscode, Inc
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
14:21 ~/work/opscode/chef % rake features:api
(in /home/thom/work/opscode/chef)
/usr/bin/ruby1.8 -I "/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.3/lib:lib" "/usr/lib/ruby/gems/1.8/gems/cucumber-0.8.3/bin/cucumber" --profile api
Using the api profile...
/home/thom/work/opscode/chef/features/support/env.rb:100: syntax error, unexpected tSYMBEG, expecting tAMPER
shell_out!(*cmd, :timeout => 120)
^
/home/thom/work/opscode/chef/features/support/env.rb:133: module definition in method body
/home/thom/work/opscode/chef/features/support/env.rb:272: syntax error, unexpected $end, expecting kEND (SyntaxError)
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
user "cruise"
execute "touch /tmp/foo" do
user "cruise"
end
r = gem_package "snmp" do
action :nothing
end
r.run_action(:install)
Gem.clear_paths
--- Log opened Thu Sep 16 21:31:22 2004
21:31 -!- thom [[email protected]] has joined #ubuntu-devel
21:31 -!- ServerMode/#ubuntu-devel [+n] by leguin.freenode.net
21:31 -!- Irssi: #ubuntu-devel: Total of 1 nicks [1 ops, 0 halfops, 0 voices, 0 normal]
21:31 -!- Irssi: Join to #ubuntu-devel was synced in 0 secs
--- Day changed Fri Sep 17 2004
irb >> m = Multicast.create({:addr => "1.2.3.4", :port => 1})
/usr/lib/ruby/gems/1.8/gems/simply_stored-0.3.8/lib/simply_stored.rb:7: warning: already initialized constant VERSION
NoMethodError: undefined method `to_i' for true:TrueClass
from /usr/lib/ruby/1.8/ipaddr.rb:449:in `initialize'
from /usr/lib/ruby/1.8/ipaddr.rb:499:in `new'
from /usr/lib/ruby/1.8/ipaddr.rb:499:in `coerce_other'
from /usr/lib/ruby/1.8/ipaddr.rb:140:in `=='
from /usr/lib/ruby/gems/1.8/gems/validatable-1.6.7/lib/validations/validates_true_for.rb:6:in `valid?'
from /usr/lib/ruby/gems/1.8/gems/validatable-1.6.7/lib/validatable_instance_methods.rb:74:in `run_validation'
@fog = Fog::AWS::DNS.new(:aws_access_key_id => @new_resource.accesskey, :aws_secret_access_key => @new_resource.secretkey)
@zone = @fog.zones.get @new_resource.zoneid
rr = @zone.records.new({"name" => @nfqdn,
"ip" => @new_resource.rdata,
"type" => @new_resource.record_type })
rr.save
zstyle -e ':completion:*:hosts' hosts 'reply=(
${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) \
/dev/null)"}%%[# ]*}//,/ })'
zstyle ':completion:*:(ssh|scp):*:users' ignored-patterns \
adm bin daemon halt lp named shutdown syn uucp
bash "add multiverse source repository " do
user "root"
code "bash < <( sed -E 's/^#.*(deb.*multiverse)$/\\1/g' -i /etc/apt/sources.list )"
notifies :run, "execute[apt-get update]", :immediately
end
execute "apt-get update" do
action :nothing
end