On Feb 7, 6:17 am, thinkwell <[email protected]> wrote: > Hello everyone, > > 2. Squid ACLs: All machines will have certain Squid ACLs, but many > machines will vary otherwise, say in cache size for example.
In regards to #2 on your list it's pretty easy to do stuff like this if you're running a relatively recent version of Squid. include /etc/squid/conf.d/* Then let Puppet add config files as needed based on regex of the hostnames or lookups in a data store. /etc/squid/conf.d/general.acl.config /etc/squid/conf.d/reverseproxy.acl.config /etc/squid/conf.d/memory.config You can template your config files based on facts about the system. I wrote a custom fact, memorysize_raw, which is a bit easier to work with than the standard memorysize and can decide how much memory to give a daemon based on local system memory. <% if memorysize_raw.to_i >= 1500000000 then -%> cache_mem 8500 MB <% elsif memorysize_raw.to_i >= 7000000000 then -%> cache_mem 2500 MB < % else -%> cache_mem 128 MB <% end -%> Ramin -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
