summaryrefslogtreecommitdiffstats
path: root/lib/puppet/node_source/none.rb
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-22 18:03:55 -0500
committerLuke Kanies <luke@madstop.com>2007-08-22 18:03:55 -0500
commit0682d7e473cfd8f2fe6bee9eae0868b846fd0d50 (patch)
treefb66cc4c81e95ee42905410310095b9a8ae23ecc /lib/puppet/node_source/none.rb
parentec50484518425ec8ac36f89b087beb27d5a3d2c8 (diff)
parent8b3361afae35cfb65754d7bd9aff5b820ed714f0 (diff)
downloadpuppet-0682d7e473cfd8f2fe6bee9eae0868b846fd0d50.tar.gz
puppet-0682d7e473cfd8f2fe6bee9eae0868b846fd0d50.tar.xz
puppet-0682d7e473cfd8f2fe6bee9eae0868b846fd0d50.zip
Merge branch 'multi_env'
Diffstat (limited to 'lib/puppet/node_source/none.rb')
-rw-r--r--lib/puppet/node_source/none.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/puppet/node_source/none.rb b/lib/puppet/node_source/none.rb
new file mode 100644
index 000000000..ce188add5
--- /dev/null
+++ b/lib/puppet/node_source/none.rb
@@ -0,0 +1,10 @@
+Puppet::Network::Handler::Node.newnode_source(:none, :fact_merge => true) 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 nodesearch(name)
+ newnode(name)
+ end
+end