From 66a1fbd392672b65bc82c217e850d6daa8542ec7 Mon Sep 17 00:00:00 2001 From: Mark Ottaway Date: Fri, 25 Oct 2024 16:33:16 +0100 Subject: [PATCH 1/2] Adding content option to policy so templates can be used. --- manifests/policy.pp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/manifests/policy.pp b/manifests/policy.pp index 27226673..1d272697 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -1,6 +1,7 @@ # Install FreeRADIUS policies define freeradius::policy ( Optional[String] $source, + Optional[String] $content, Optional[Integer] $order = 50, Freeradius::Ensure $ensure = present, ) { @@ -15,6 +16,7 @@ owner => 'root', group => $fr_group, source => $source, + content => $content, require => [Package['freeradius'], Group['radiusd']], notify => Service['radiusd'], } From b868e6d78aa96609ca1683bc06197205dbc86177 Mon Sep 17 00:00:00 2001 From: Mark Ottaway Date: Fri, 25 Oct 2024 17:01:54 +0100 Subject: [PATCH 2/2] Testing content and source as undefined --- manifests/policy.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/policy.pp b/manifests/policy.pp index 1d272697..eab71fe6 100644 --- a/manifests/policy.pp +++ b/manifests/policy.pp @@ -1,7 +1,7 @@ # Install FreeRADIUS policies define freeradius::policy ( - Optional[String] $source, - Optional[String] $content, + Optional[String] $source = undef, + Optional[String] $content = undef, Optional[Integer] $order = 50, Freeradius::Ensure $ensure = present, ) {