diff options
author | mh <mh@immerda.ch> | 2012-10-21 15:09:35 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2012-10-21 15:09:35 +0200 |
commit | 94b99fef7a85d9165b40e2dc01c5617824330826 (patch) | |
tree | 43b1ffe6d6015b92e60d3f78bb7304919d7de0ee /manifests/config | |
parent | e293b5be988133c04c2611ca6f5b1ab974c8d8f1 (diff) | |
download | puppet-lighttpd-94b99fef7a85d9165b40e2dc01c5617824330826.tar.gz puppet-lighttpd-94b99fef7a85d9165b40e2dc01c5617824330826.tar.bz2 |
this include construct is only needed on centos systems
Diffstat (limited to 'manifests/config')
-rw-r--r-- | manifests/config/file.pp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/manifests/config/file.pp b/manifests/config/file.pp index ca1abdd..8e361f7 100644 --- a/manifests/config/file.pp +++ b/manifests/config/file.pp @@ -13,11 +13,15 @@ define lighttpd::config::file( mode => '0644'; } - file_line{$name: - ensure => $ensure, - path => "${lighttpd::conf_dir}/config.conf", - line => "include \"${lighttpd::conf_dir_name}/${name}.conf\"", - notify => Service['lighttpd'], + case $operatingsystem { + centos,redhat,fedora: { + file_line{$name: + ensure => $ensure, + path => "${lighttpd::conf_dir}/config.conf", + line => "include \"${lighttpd::conf_dir_name}/${name}.conf\"", + notify => Service['lighttpd'], + } + } } case $content { |