Skip to content

Instantly share code, notes, and snippets.

@hunner
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunner/8430a1e07a7ebd5a355c to your computer and use it in GitHub Desktop.
Save hunner/8430a1e07a7ebd5a355c to your computer and use it in GitHub Desktop.
confine :true => begin
a = Puppet::Node::Facts.indirection
a.terminus_class = :network_device
a.find(Puppet::Indirector::Request.new(:facts, :find, "clustered", nil))
rescue
:false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment