summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/config/file.pp14
1 files changed, 13 insertions, 1 deletions
diff --git a/manifests/config/file.pp b/manifests/config/file.pp
index 8e361f7..95a5968 100644
--- a/manifests/config/file.pp
+++ b/manifests/config/file.pp
@@ -13,7 +13,7 @@ define lighttpd::config::file(
mode => '0644';
}
- case $operatingsystem {
+ case $::operatingsystem {
centos,redhat,fedora: {
file_line{$name:
ensure => $ensure,
@@ -22,6 +22,18 @@ define lighttpd::config::file(
notify => Service['lighttpd'],
}
}
+ debian,ubuntu: {
+ $link_ensure = $ensure ? {
+ 'present' => 'link',
+ default => $ensure
+ },
+ file{"/etc/lighttpd/conf-enabled/${name}.conf":
+ ensure => $link_ensure,
+ target => "${lighttpd::conf_dir}/${name}.conf",
+ require => Package['lighttpd'],
+ notify => Service['lighttpd'];
+ }
+ }
}
case $content {