Module: PuppetRepl::Support::Node

Included in:
PuppetRepl::Support
Defined in:
lib/puppet-repl/support/node.rb

Instance Method Summary collapse

Instance Method Details

#create_nodeObject

creates a node object



5
6
7
8
9
10
11
12
# File 'lib/puppet-repl/support/node.rb', line 5

def create_node
  options = {}
  options[:parameters] = facts
  options[:facts] = facts
  options[:classes] = []
  options[:environment] = puppet_environment
  Puppet::Node.new(facts[:fqdn], options)
end