Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Forked from glarizza/gist:710447
Created November 22, 2010 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ripienaar/710504 to your computer and use it in GitHub Desktop.
Save ripienaar/710504 to your computer and use it in GitHub Desktop.
### Module
module MCollective
module Agent
# A simpleRPC Agent that replies with each active config setting.
#
class Confignotify<RPC::Agent
action "get_config" do
config = Config.instance
[:topicprefix, :daemonize, :pluginconf, :libdir, :configured, :logfile,
:keeplogs, :max_log_size, :loglevel, :identity, :daemonize, :connector,
:securityprovider, :factsource, :registration, :registerinterval, :topicsep,
:classesfile, :rpcauditprovider, :rpcaudit, :configdir, :rpcauthprovider,
:rpcauthorization, :color, :configfile, :rpchelptemplate, :rpclimitmethod].each do |item|
reply[item] = config.send(item)
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment