From b2f2d1b082cdd449420c7b0ee8330d3a3a2a8918 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Mon, 20 Jan 2020 12:34:09 -0500 Subject: [PATCH] Convert templates.conf to a directory, include it within radiusd.conf again Not sure why the include was removed TBH --- raddb/radiusd.conf.in | 20 +++++++++++++++++++- raddb/{templates.conf => template.d/default} | 0 2 files changed, 19 insertions(+), 1 deletion(-) rename raddb/{templates.conf => template.d/default} (100%) diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in index 05097eff478..34d98a370e5 100644 --- a/raddb/radiusd.conf.in +++ b/raddb/radiusd.conf.in @@ -358,6 +358,24 @@ ENV { # LD_PRELOAD = /path/to/library2.so } +# +# .Templates +# +# Template files hold common definitions that can be used in other +# server sections. When a template is referenced, the configuration +# items within the referenced template are copied to the referencing +# section. +# +# Using templates reduces repetition of common configuration items, +# which in turn makes the server configuration easier to maintain. +# +# See template.d/default for examples of using templates, and the +# referencing syntax. +# +templates { + $INCLUDE template.d/ +} + # # .Security Configuration # @@ -399,7 +417,7 @@ security { # # user:: - # group:: + # group:: # # The name (or `#number`) of the `user`/`group` to run `radiusd` as. # diff --git a/raddb/templates.conf b/raddb/template.d/default similarity index 100% rename from raddb/templates.conf rename to raddb/template.d/default -- 2.47.3