Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
2f1b9d5f
Commit
2f1b9d5f
authored
Oct 16, 2015
by
Jonathan Gazeley
Browse files
Change order of file so template variable is defined
parent
1a278937
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/sql.pp
View file @
2f1b9d5f
...
...
@@ -77,17 +77,6 @@ define freeradius::sql (
fail
(
'$readclients must be yes or no'
)
}
# Generate a module config, based on sql.conf
file
{
"
${fr_modulepath}
/
${name}
"
:
ensure
=>
$ensure
,
mode
=>
'0640'
,
owner
=>
'root'
,
group
=>
$fr_group
,
content
=>
template
(
'freeradius/sql.conf.erb'
),
require
=>
[
Package
[
$fr_package
],
Group
[
$fr_group
]],
notify
=>
Service
[
$fr_service
],
}
# Determine default location of query file
$queryfile
=
$::freeradius_version
?
{
/^2
\.
/
=>
"
${fr_basepath}
/sql/
${database}
/dialup.conf"
,
...
...
@@ -104,6 +93,17 @@ define freeradius::sql (
}
}
# Generate a module config, based on sql.conf
file
{
"
${fr_modulepath}
/
${name}
"
:
ensure
=>
$ensure
,
mode
=>
'0640'
,
owner
=>
'root'
,
group
=>
$fr_group
,
content
=>
template
(
'freeradius/sql.conf.erb'
),
require
=>
[
Package
[
$fr_package
],
Group
[
$fr_group
]],
notify
=>
Service
[
$fr_service
],
}
# Install rotation for sqltrace if we are using it
if
(
$sqltrace
==
'yes'
)
{
logrotate::rule
{
'sqltrace'
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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