summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-10-21 15:21:16 +0200
committermh <mh@immerda.ch>2012-10-21 15:21:16 +0200
commit4dd60e104fc79709491ddc151177a1638d46fc45 (patch)
treefe7fc7af5baec6bc548786f7b0350a30194e115f
parent94b99fef7a85d9165b40e2dc01c5617824330826 (diff)
downloadpuppet-lighttpd-4dd60e104fc79709491ddc151177a1638d46fc45.tar.gz
puppet-lighttpd-4dd60e104fc79709491ddc151177a1638d46fc45.tar.bz2
enable deployed configs on debian
-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 {