diff options
author | mh <mh@immerda.ch> | 2012-10-21 13:43:08 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-10-21 13:43:08 +0200 |
commit | 933b976b57eb025c8126e01a50cb25feb0be7157 (patch) | |
tree | 94d6039ac97b3398e300fdf27dd7c2175d50d605 /manifests | |
parent | 6e57680fcb8c976a902224fea1d886f2dc80ae00 (diff) | |
download | puppet-lighttpd-933b976b57eb025c8126e01a50cb25feb0be7157.tar.gz puppet-lighttpd-933b976b57eb025c8126e01a50cb25feb0be7157.tar.bz2 |
use the full path
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/config/file.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/config/file.pp b/manifests/config/file.pp index bda958e..ca1abdd 100644 --- a/manifests/config/file.pp +++ b/manifests/config/file.pp @@ -4,7 +4,7 @@ define lighttpd::config::file( $conf_source = 'absent', $content = 'absent' ){ - file{"${lighttpd::conf_dir_name}/${name}.conf": + file{"${lighttpd::conf_dir}/${name}.conf": ensure => $ensure, require => Package['lighttpd'], notify => Service['lighttpd'], @@ -22,7 +22,7 @@ define lighttpd::config::file( case $content { 'absent': { - File["${lighttpd::conf_dir_name}/${name}.conf"]{ + File["${lighttpd::conf_dir}/${name}.conf"]{ source => $conf_source ? { 'absent' => [ "puppet:///modules/site_lighttpd/${lighttpd::conf_dir_name}/${::fqdn}/${name}.conf", @@ -40,7 +40,7 @@ define lighttpd::config::file( } } default: { - File["${lighttpd::conf_dir_name}/${name}.conf"]{ + File["${lighttpd::conf_dir}/${name}.conf"]{ content => $content, } } |