Class: ACE::Configurer

Inherits:
Puppet::Configurer
  • Object
show all
Defined in:
lib/ace/configurer.rb

Instance Method Summary collapse

Instance Method Details

#get_facts(options) ⇒ Object

override the configurer to return the facts related to the transport and the trusted facts which is passed to the configurer.run



10
11
12
13
14
15
# File 'lib/ace/configurer.rb', line 10

def get_facts(options)
  transport_facts = Puppet::Node::Facts.indirection.find(Puppet[:certname],
                                                         environment: Puppet[:environment]).values
  trusted_facts = options[:trusted_facts]
  { transport_facts: transport_facts, trusted_facts: trusted_facts }
end