Creating a file with Puppet with facts from multiple hosts

Posted by Belly on Server Fault See other posts from Server Fault or by Belly
Published on 2010-06-16T18:12:03Z Indexed on 2010/06/16 18:23 UTC
Read the original article Hit count: 190

Filed under:

I'm trying to have puppet build a configuration file that looks like this:

[All]
Hosts=apt-dater@puppetmaster;apt-dater@blaster; (etc...)

Basically, this file needs an entry for each node that includes the apt-dater class. I've been experimenting with exported resources, but I can't find a clean way of putting it together. How should I go about creating this file?

© Server Fault or respective owner

Related posts about puppet