28
|
1 |
class apache::mod::nss ( |
|
2 |
$transfer_log = "${::apache::params::logroot}/access.log", |
|
3 |
$error_log = "${::apache::params::logroot}/error.log", |
|
4 |
$passwd_file = undef |
|
5 |
) { |
|
6 |
include ::apache::mod::mime |
|
7 |
|
|
8 |
apache::mod { 'nss': } |
|
9 |
|
|
10 |
$httpd_dir = $::apache::httpd_dir |
|
11 |
|
|
12 |
# Template uses: |
|
13 |
# $transfer_log |
|
14 |
# $error_log |
|
15 |
# $http_dir |
|
16 |
# passwd_file |
|
17 |
file { 'nss.conf': |
|
18 |
ensure => file, |
|
19 |
path => "${::apache::mod_dir}/nss.conf", |
|
20 |
content => template('apache/mod/nss.conf.erb'), |
|
21 |
require => Exec["mkdir ${::apache::mod_dir}"], |
|
22 |
before => File[$::apache::mod_dir], |
|
23 |
notify => Class['apache::service'], |
|
24 |
} |
|
25 |
} |