Hi all,
As requested by at least one person (and because I''d been thinking
about it and figured it would be a good idea), I''ve just made it
simple to use external node sources with Puppet.
If you set ''external_nodes'' to a command (the default is
''none''),
then Puppet will call that command and use it to configure nodes.
The output of the command is simple:
The parent node should be on the first line (if no parent, the first
line should be blank). The classes should be on the second line,
separated by any amount of whitespace. If there are no classes
(i.e., all the code is in the parent node) the second line can be
blank or absent.
For example, a host''s output would look something like this:
myparent
webserver dbserver solaris
Hopefully this should be one further step towards helping people
avoid generating code. As I''ve said before, if you have to generate
Puppet code, it''s a bug.
This will be in the next release (hopefully out tomorrow). The
config parameter''s docs will be in the reference relatively soon, but
Rainhead on #puppet has been porting the docs to the Trac wiki[1], so
if someone wanted to make a page for this, that''d be great.
Cheers,
Luke
1 - https://reductivelabs.com/cgi-bin/puppet.cgi/wiki/DocumentationStart
--
I have learned to use the word ''impossible'' with the
greatest caution.
-- Wernher von Braun
---------------------------------------------------------------------
Luke Kanies | http://reductivelabs.com | http://madstop.com