From 4dd60e104fc79709491ddc151177a1638d46fc45 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 21 Oct 2012 15:21:16 +0200 Subject: enable deployed configs on debian --- manifests/config/file.pp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3