Module: Puppet::TrustedExternal
- Defined in:
- lib/puppet/trusted_external.rb
Overview
A method for retrieving external trusted facts
Class Method Summary collapse
Class Method Details
.retrieve(certname) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/puppet/trusted_external.rb', line 3 def retrieve(certname) command = Puppet[:trusted_external_command] return nil unless command result = Puppet::Util::Execution.execute([command, certname], { :combine => false, :failonfail => true, }) JSON.parse(result) end |