Commit 5bcee066 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Add support for custom query file (dialup.conf)

parent 65327dc1
......@@ -284,6 +284,16 @@ you will see errors like "No connections available and at max connection limit".
this to MORE than the number of threads means that there are more connections than necessary.
Leave blank to set it to the same value as the number of threads.
##### `query_file`
Default: `sql/${database}/dialup.conf`. Relative path to the file which contains your SQL queries. By
default, points to the `dialup.conf` specific to your database engine, so leave this blank if you are
using stock queries.
If you need to use custom queries, it is recommended that you deploy your query file using
`freeradius::script` to install the file into `/etc/raddb/scripts/custom_dialup.conf` and then
set `query_file` to `scripts/custom_dialup.conf`.
#### `freeradius::statusclient`
......@@ -6,6 +6,7 @@ define freeradius::sql (
$login = 'radius',
$radius_db = 'radius',
$num_sql_socks = '${thread[pool].max_servers}',
$query_file = 'sql/${database}/dialup.conf',
) {
$fr_package = $::freeradius::params::fr_package
$fr_service = $::freeradius::params::fr_service
......@@ -111,5 +111,5 @@ sql {
nas_table = "nas"
# Read driver-specific configuration
$INCLUDE sql/${database}/dialup.conf
$INCLUDE <%= @query_file %>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment