Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial commit.

  • Loading branch information...
commit efe775e62713504245cd0783c0da575cbcc211e3 0 parents
@jeffmccune authored
Showing with 24 additions and 0 deletions.
  1. +9 −0 README.markdown
  2. +15 −0 lib/puppet/indirector/node/exec_with_fact.rb
9 README.markdown
@@ -0,0 +1,9 @@
+# Overview #
+
+This plugin provides a custom ENC terminus to allow passing of fact information
+through to the ENC script, other than the certificate name.
+
+Requires Puppet 2.6.?
+
+This is a work in progress (2011-04-13)
+
15 lib/puppet/indirector/node/exec_with_fact.rb
@@ -0,0 +1,15 @@
+require 'puppet/indirector/node/exec'
+
+class Puppet::Node::ExecWithFact < Puppet::Node::Exec
+ desc "Call an external program to get node information using a customizable fact rather than the node identifier."
+
+ def find(request)
+ # JJM: Find out if we have access to the facts here. I think we do.
+ # Add a configuration setting to determine which fact to inspect.
+ # Execute the ENC script with the fact value.
+ raise NotImplementedError, "We should translate certname to a fact value."
+ end
+
+ private
+
+end
Please sign in to comment.
Something went wrong with that request. Please try again.