Created
January 21, 2009 19:17
-
-
Save btm/50126 to your computer and use it in GitHub Desktop.
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
bryanm@dev-ots02:/etc/ganglia$ sudo /var/lib/gems/1.8/bin/chef-client | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Starting Chef Run | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin os | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin ruby | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin languages | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin kernel | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin keys | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin ohai_time | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin network | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin hostname | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin linux::hostname | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin linux::network | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin platform | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin linux::platform | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin linux::lsb | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin erlang | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin command | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin uptime | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin linux::ps | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin linux::ssh_host_key | |
[Wed, 21 Jan 2009 11:16:01 -0800] INFO: Loading plugin linux::block_device | |
[Wed, 21 Jan 2009 11:16:02 -0800] INFO: Loading plugin linux::cpu | |
[Wed, 21 Jan 2009 11:16:02 -0800] INFO: Loading plugin linux::filesystem | |
[Wed, 21 Jan 2009 11:16:02 -0800] INFO: Loading plugin linux::memory | |
[Wed, 21 Jan 2009 11:16:02 -0800] INFO: Loading plugin linux::kernel | |
[Wed, 21 Jan 2009 11:16:02 -0800] INFO: Loading plugin linux::uptime | |
[Wed, 21 Jan 2009 11:16:04 -0800] INFO: Storing updated cookbooks/ganglia/recipes/node.rb in the cache. | |
[Wed, 21 Jan 2009 11:16:05 -0800] ERROR: service[ganglia-monitor] (/srv/chef/cache/cookbooks/ganglia/recipes/node.rb line 25) had an error: | |
undefined method `action_none' for #<Chef::Provider::Service::Debian:0x7fc477843738> | |
/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:87:in `send'/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:87:in `converge'/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:85:in `each'/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:85:in `converge'/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/resource_collection.rb:58:in `each'/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/resource_collection.rb:57:in `each'/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:63:in `converge'/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/client.rb:342:in `converge'/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/client.rb:76:in `run'/var/lib/gems/1.8/gems/chef-0.5.1/bin/chef-client:114/var/lib/gems/1.8/gems/chef-0.5.1/bin/chef-client:108:in `loop'/var/lib/gems/1.8/gems/chef-0.5.1/bin/chef-client:108/var/lib/gems/1.8/bin/chef-client:19:in `load'/var/lib/gems/1.8/bin/chef-client:19 | |
/var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:87:in `send': undefined method `action_none' for #<Chef::Provider::Service::Debian:0x7fc477843738> (NoMethodError) | |
from /var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:87:in `converge' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:85:in `each' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:85:in `converge' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/resource_collection.rb:58:in `each' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/resource_collection.rb:57:in `each' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/runner.rb:63:in `converge' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/client.rb:342:in `converge' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/lib/chef/client.rb:76:in `run' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/bin/chef-client:114 | |
from /var/lib/gems/1.8/gems/chef-0.5.1/bin/chef-client:108:in `loop' | |
from /var/lib/gems/1.8/gems/chef-0.5.1/bin/chef-client:108 | |
from /var/lib/gems/1.8/bin/chef-client:19:in `load' | |
from /var/lib/gems/1.8/bin/chef-client:19 |
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
# | |
# Author:: Bryan McLellan <[email protected]> | |
# Cookbook Name:: ganglia | |
# Recipe:: default | |
# | |
# Copyright 2008, Bryan McLellan | |
# | |
# 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 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# | |
package "ganglia-monitor" do | |
action :install | |
end | |
service "ganglia-monitor" do | |
pattern "gmond" | |
end | |
template "/etc/ganglia/gmond.conf" do | |
source "gmond.conf.erb" | |
mode 0644 | |
owner "root" | |
group "root" | |
notifies :restart, resources(:service => "ganglia-monitor") | |
variables( | |
:ganglia_cluster_name => node[:ganglia_cluster_name], | |
:ganglia_mcast_send => node[:ganglia_mcast_send], | |
:ganglia_mcast_recv => node[:ganglia_mcast_recv], | |
:ganglia_mcast_if => node[:ganglia_mcast_if] | |
) | |
end | |
service "ganglia-monitor" do | |
pattern "gmond" | |
action [ :enable, :start] | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment