Alan DeKok wrote:
>   OK... two new features.
>
> server_pool foo {
>       # hash the source IP, and pick one of the
>       # home servers.
>       type = client-balance
>       ...
> }
>
>   Nice, but not rocket science.  Even nicer is the templates:
>
> #
> #  Holds default configurations for other sections
> #  best used when the data is repeated a lot.
> #
> templates {
>       #
>       #  Default configurations for all home_servers.
>       #  Note: no second name.
>       #  Note: entries given here are over-ridden by
>       #        entries in a real home_server
>       #
>       home_server {
>               zombie_period = 15
>               ...
>       }
>
>       #
>       #  Name a specific template
>       home_server companyX {
>               zombie_period = 13
>               ...
>       }
> }
>
> #
> #  And some examples...
> #
> home_server foo {
>       ...
>       # no zombie_period: choose zombie_period from the template
> }
>
> home_server bar {
>       # over-rides what's in the template
>       zombie_period = 20
> }
>
> home_server dud {
>       ...
>       #
>       #  Choose a particular home_server template
>       #
>       template = companyX
> }
>
>   I think this will do much the same thing you've been trying to do with
> include files, but with less work.
>
>   It's ~80 lines of code, and very cool...
>
>   
Very very cool, have these gone into CVS ? If so i'll recompile now and 
have a go :)

And i'm guessing templates are global too :) ? So they can also be used 
in clients and anywhere else you have to repeat something over and over 
again ??

Excellent work !

--
Arran


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to