Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
5bcee066
Commit
5bcee066
authored
Nov 14, 2014
by
Jonathan Gazeley
Browse files
Add support for custom query file (dialup.conf)
parent
65327dc1
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
5bcee066
...
...
@@ -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`
...
...
manifests/sql.pp
View file @
5bcee066
...
...
@@ -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
...
...
templates/sql.conf.erb
View file @
5bcee066
...
...
@@ -111,5 +111,5 @@ sql {
nas_table = "nas"
# Read driver-specific configuration
$INCLUDE
sql/${database}/dialup.conf
$INCLUDE
<%=
@query_file
%>
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment