mode => '0644';
}
- case $operatingsystem {
+ case $::operatingsystem {
centos,redhat,fedora: {
file_line{$name:
ensure => $ensure,
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 {