Mercurial > repos > other > Puppet
view 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 source
# @summary # Installs and configures `mod_nss`. # # @param transfer_log # Path to `access.log`. # # @param error_log # Path to `error.log` # # @param passwd_file # Path to file containing token passwords used for NSSPassPhraseDialog. # # @param port # Sets the SSL port that should be used by mod_nss. # # @see https://pagure.io/mod_nss for additional documentation. # class apache::mod::nss ( Stdlib::Absolutepath $transfer_log = "${apache::params::logroot}/access.log", Stdlib::Absolutepath $error_log = "${apache::params::logroot}/error.log", Optional[String] $passwd_file = undef, Stdlib::Port $port = 8443, ) { include apache include apache::mod::mime apache::mod { 'nss': } $httpd_dir = $apache::httpd_dir # Template uses: # $transfer_log # $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 => epp('apache/mod/nss.conf.epp', $parameters), require => Exec["mkdir ${apache::mod_dir}"], before => File[$apache::mod_dir], notify => Class['apache::service'], } }