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