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?
I assume that you already understand the principles of exporting and collecting individual type resources. Just not how to translate these individual resources into a single file. Puppet has two methods for doing this:
puppet-concat
moduleAugeas is a very clever tool but it can prove complex if you have to start writing and distributing your own lenses. However
puppet-concat
is very simple to grasp. I haven't tested the following for syntax but it should set you on the right track:Then setup the nodes: