Commit 2f1b9d5f authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Change order of file so template variable is defined

parent 1a278937
......@@ -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':
......
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