Commit f7abdcf0 authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Moved the selector outside of the resource

parent f776557e
......@@ -9,13 +9,15 @@ define freeradius::cert (
$fr_basepath = $::freeradius::params::fr_basepath
$fr_group = $::freeradius::params::fr_group
file { "${fr_basepath}/certs/${name}":
ensure => $ensure,
mode => $type ? {
$permission = $type ? {
'key' => '0640',
'cert' => '0644',
default => '0644',
},
}
file { "${fr_basepath}/certs/${name}":
ensure => $ensure,
mode => $permission,
owner => 'root',
group => $fr_group,
source => $source,
......
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