On Tue, Jun 8, 2010 at 7:20 AM, Gary Larizza <ccsh...@gmail.com> wrote:

> Is there a way to pass something other than the certname fact that is being
> passed to an external node classifier script?  I'm looking through
> puppet/indirector/exec.rb and puppet/indirector/node/exec.rb but am not
> seeing a way to change the information passed.
>
> If this isn't possible, is there a way that Facter data can be accessible
> to an external node classifier?  I'm looking to clean up the way we assign
> classes to nodes, and am hoping I can utilize Facter data to use this.
>  Thanks!
>

We had a chat about this on the list relatively recently.

The server actually writes out the client fact data *before* the external
node provider gets invoked, so you can poke into the fact store on the
server, assuming that the facts you want are available at that point.

There should be an easier first class method for working this out, but it's
certainly doable now.


> --
> Gary Larizza
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com<puppet-users%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>



-- 
nigel

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to