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
#!/usr/bin/env escript | |
%% -*- erlang -*- | |
%%! -sname nodefinder | |
%% Usage: | |
%% chmod +x nodes.erl | |
%% ./nodes.erl 'somenode@host' | |
main([N]) -> | |
Node = list_to_atom(N), |
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
#! /usr/bin/env ruby | |
# Original by Tollef Fog Heen <tfheen _at_ err.no> | |
require 'chef/config' | |
require 'chef/search/query' | |
require 'chef/log' | |
require 'time' | |
require 'getoptlong' | |
require "ohai" |
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
module MCollective | |
module Agent | |
class agentreload<RPC::Agent | |
action 'reload' do | |
validate :name, String | |
reply.fail! "#{request[:name]} not found." unless Agents.agentlist.include?(request[:name]) | |
# we should iterate on @config.libdir here... | |
load(@config.libdir[0]+"/mcollective/agent/"+request[:name]+".rb") | |
end |
NewerOlder