niczar wrote: > On Jul 6, 11:00 am, David Schmitt <da...@dasz.at> wrote: >> Dick Davies wrote: >>> Think he means this :http://nephilim.ml.org/~rip/puppet/concatfile/ >>> (Volcane on IRC recommended/wrote it; the idea is for e.g. each service >>> that needs a firewall rule can create a fragment of an iptables config, >>> which is then concatenated into a single config file by the iptables class.) >> Actually, I >> meanthttp://git.black.co.at/?p=module-common;a=blob;f=manifests/defines/co... >> which is mostly the same, since Volcane and I were heavily influenced by >> each other. > > Well thank you, that seems to answer my question; however I can't help > but think there's gotta be a better way to do this. This looks like a > limitation in core puppet. I don't find the idea of performing such > computations on the client very puppet-like.
If you have all information on the puppetmaster, you can use a function like generate() or template() to create the file there. In some cases -- especially when using export/collect -- the master doesn't have enough information readily available for such functions to work. Indeed in these latter cases, it is not only a limitation of puppet's core, but generally restritictions on information flow. Especially when trying to exchange information between independent modules. Regards, DavidS --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---