-
-
Save ripienaar/710504 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
### 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