Puppet Function: choria::discover
- Defined in:
- lib/puppet/functions/choria/discover.rb
- Function type:
- Ruby 4.x API
Overview
Discovers nodes using Choria Playbook Node Seets
Any Node Set that Choria Playbooks support can be used to discover nodes, test their Choria availability and audit their agents
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/puppet/functions/choria/discover.rb', line 43 Puppet::Functions.create_function(:"choria::discover", Puppet::Functions::InternalFunction) do dispatch :mcollective_discover do scope_param param "Hash", :options end dispatch :discover do scope_param param "String", :type param "Hash", :options end def mcollective_discover(scope, ) discover(scope, "mcollective", ) end def discover(scope, type, ) require_relative "../../_load_choria" MCollective::Util::BoltSupport.init_choria.discover_nodes(scope, type, ) end end |