blob: 034c0b349a0380da56cd53e2378e435155c7129d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'puppet/node/facts'
Puppet::Indirector.register_terminus :node, :none do
desc "Always return an empty node object. This is the node source you should
use when you don't have some other, functional source you want to use,
as the compiler will not work without this node information."
# Just return an empty node.
def find(name)
node = Puppet::Node.new(name)
node.fact_merge
node
end
end
|