diff modules/apache/manifests/mod/nss.pp @ 478:adf6fe9bbc17

Update Puppet modules to latest versions
author IBBoard <dev@ibboard.co.uk>
date Thu, 29 Aug 2024 18:47:29 +0100
parents b8d6ada284dd
children
line wrap: on
line diff
--- a/modules/apache/manifests/mod/nss.pp	Tue Aug 27 13:35:17 2024 +0100
+++ b/modules/apache/manifests/mod/nss.pp	Thu Aug 29 18:47:29 2024 +0100
@@ -33,11 +33,19 @@
   # $error_log
   # $http_dir
   # passwd_file
+  $parameters = {
+    'port'          => $port,
+    'passwd_file'   => $passwd_file,
+    'error_log'     => $error_log,
+    'transfer_log'  => $transfer_log,
+    'httpd_dir'     => $httpd_dir,
+  }
+
   file { 'nss.conf':
     ensure  => file,
     path    => "${apache::mod_dir}/nss.conf",
     mode    => $apache::file_mode,
-    content => template('apache/mod/nss.conf.erb'),
+    content => epp('apache/mod/nss.conf.epp', $parameters),
     require => Exec["mkdir ${apache::mod_dir}"],
     before  => File[$apache::mod_dir],
     notify  => Class['apache::service'],