Hi,
When I use the below recipe I get the following error. Tottaly
unclear from the stacktrace of how to resolve the issue. I am rather
new to chef and ruby FYI........
ec2-175-41-166-33.ap-southeast-1.compute.amazonaws.com [Wed, 28 Mar
2012 02:03:24 +0000] ERROR: Running exception handlers
DEBUG: read 264 bytes
DEBUG: received packet nr 2949 type 94 len 124
INFO: channel_data: 0 106b
ec2-175-41-166-33.ap-southeast-1.compute.amazonaws.com [Wed, 28 Mar
2012 02:03:24 +0000] FATAL: Saving node information to
/var/chef/cache/failed-run-data.json
DEBUG: received packet nr 2950 type 94 len 92
INFO: channel_data: 0 70b
ec2-175-41-166-33.ap-southeast-1.compute.amazonaws.com [Wed, 28 Mar
2012 02:03:24 +0000] ERROR: Exception handlers complete
DEBUG: read 280 bytes
DEBUG: received packet nr 2951 type 94 len 124
INFO: channel_data: 0 99b
ec2-175-41-166-33.ap-southeast-1.compute.amazonaws.com [Wed, 28 Mar
2012 02:03:24 +0000] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
DEBUG: received packet nr 2952 type 94 len 108
INFO: channel_data: 0 93b
ec2-175-41-166-33.ap-southeast-1.compute.amazonaws.com [Wed, 28 Mar
2012 02:03:24 +0000] FATAL: ArgumentError: wrong number of arguments
(0 for 1)
DEBUG: read 140 bytes
DEBUG: received packet nr 2953 type 96 len 12
INFO: channel_eof: 0
DEBUG: received packet nr 2954 type 98 len 44
INFO: channel_request: 0 exit-status false
DEBUG: received packet nr 2955 type 97 len 12
INFO: channel_close: 0
DEBUG: queueing packet nr 14 type 97 len 28
INFO: closing remaining channels (0 open)
Below is my recipe. So...what did I do wrong? am sure its becuse of
the below.
#Role File
name "demo"
description "testing"
run_list "recipe[runit]","recipe[vcider]"
default_attributes "vcider" => { "tags" => 'rtb,nginx' }
#Attributes
default[:vcider][:tags] = 'rtb'
default[:vcider][:location] = 'singapore'
default[:vcider][:environment] = 'development'
default[:vcider][:version] = '2.0.1b'
default[:vcider][:arch] = 'amd64'
default[:vcider][:checksum] = 'cd2c579e708edb8c061ead0b53ae91031cd27cb7'
#Recipe
version = node[:vcider][:version]
arch = node[:vcider][:arch]
package "libssl0.9.8" do
action :install
end
remote_file "/tmp/vcider_#{version}_#{arch}.deb" do
source "https://my.vcider.com/m/downloads/vcider_#{version}_#{arch}.deb"
mode 0644
checksum node[:vcider][:checksum]
end
dpkg_package "vcider" do
source "/tmp/vcider_#{version}_#{arch}.deb"
action :install
require
end
#service "vcider-nmd" do
# supports :status => true, :restart => true, :reload => true
# action [ :enable, :start ]
#end
template "account.key" do
path "/etc/vcider/account.key"
source "account.key.erb"
owner "root"
group "root"
mode "0644"
end
template "vcider.conf" do
path "/etc/vcider/vcider.conf"
source "vcider.conf.erb"
owner "root"
group "root"
mode "0644"
#notifies :restart, resources(:service => "vcider-nmd")
end
script "install_vcider" do
interpreter "bash"
user "root"
cwd "/tmp"
code <<-EOH
/etc/init.d/vcider-nmd restart
EOH
end
Archive powered by MHonArc 2.6.16.