Paul Gear wrote:
> Hi,
> 
> I'm trying to create a squid url_regex ACL source file for various
> different sites.  Each site needs a slightly different configuration, so
> my plan was to create the a bunch of files on the server, then drag them
> down and concatenate them into a single file on the client.
> 
> I found http://reductivelabs.com/trac/puppet/wiki/CompleteConfiguration
> and i've been trying to understand its approach to constructing a file
> out of fragments.  Am i right in thinking that i need to distribute an
> entire directory from the server, then use concatenated_file to combine
> those files into one file on the puppet agent?
> 
> I'd rather not distribute the entire directory from the server, since it
> contains custom content for each node.  Is there a way i can do this
> with templates that include other files?  (Or templates that are plain
> text rather than .erb?)  I'd really like to find a technique that
> doesn't require separately copying the file fragments to the client also...
> ...

Thanks for the suggestions on this.  I ended up going with a templated
solution that uses a bit of Ruby to intelligently grab files in on the
server.  I've documented my efforts here:

http://reductivelabs.com/trac/puppet/wiki/Recipes/SquidConfiguration

Any suggestions for improvement gratefully accepted.

Paul


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to