Commit 111812a6 authored by Angel L. Mateo's avatar Angel L. Mateo
Browse files

The link in mods-enabled directory should not be present if site has

ensure => absent
parent 348571a7
......@@ -26,6 +26,11 @@ define freeradius::site (
default => undef,
}
$ensure_link = $ensure ? {
'absent' => 'absent',
default => 'link'
}
file { "${fr_basepath}/sites-available/${name}":
ensure => $ensure,
mode => '0640',
......@@ -37,7 +42,7 @@ define freeradius::site (
notify => Service[$fr_service],
}
file { "${fr_basepath}/sites-enabled/${name}":
ensure => link,
ensure => $ensure_link,
target => "${fr_basepath}/sites-available/${name}",
}
}
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