On Mon, 28 Feb 2011, Douglas Garstang wrote:
How is it possible to use external nodes as local files? I was
under the impression that node_terminus=exec or node_terminus=ldap
were the only ways of using external nodes.
Really? That might be because everyone seems to be on the LDAP
external node bandwagon. You can put a "external_nodes = <script>"
in your puppet.conf file, where <script> is a script that does
whatever it needs to read the local files and dump the output in
YAML format.
Oh, so you are using an external node classifier script in the usual
way, with node_terminus = exec; you are just using unusual terminology
to describe it. Puppet knows nothing about "external nodes as local
files"; all it knows is that you have an external node classifier
script.
The question about where to put the data files used by your script
still stands, of course, and I would still probably put them under an
environment-specific directory.
Yeah, but then you have the problem of not knowing what environment
the node is in, and you have to go digging around for it. The more
environments you have, the more places you have to dig.
I have an external node classifier script whose sole task is to go
digging in multiple environment-specific directories to figure out
which environment a client node belongs to.
--apb (Alan Barrett)
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-users@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.