}
file{'/etc/lighttpd/lighttpd.conf':
- source => [ "puppet://$server/modules/site-lighttpd/${fqdn}/lighttpd.conf",
- "puppet://$server/modules/site-lighttpd/lighttpd.conf",
- "puppet://$server/modules/lighttpd/lighttpd.conf" ],
+ source => [ "puppet:///modules/site-lighttpd/${fqdn}/lighttpd.conf",
+ "puppet:///modules/site-lighttpd/lighttpd.conf",
+ "puppet:///modules/lighttpd/lighttpd.conf" ],
require => Package['lighttpd'],
notify => Service['lighttpd'],
owner => root, group => 0, mode => 0644;
File["/etc/lighttpd/conf.d/${name}.conf"]{
source => $conf_source ? {
'absent' => [
- "puppet://$server/modules/site-lighttpd/conf.d/$fqdn/$name.conf",
- "puppet://$server/modules/site-lighttpd/conf.d/$lighttpd_cluster_node/$name.conf",
- "puppet://$server/modules/site-lighttpd/conf.d/$operatingsystem.$lsbdistcodename/$name.conf",
- "puppet://$server/modules/site-lighttpd/conf.d/$operatingsystem/$name.conf",
- "puppet://$server/modules/site-lighttpd/conf.d/$name.conf",
- "puppet://$server/modules/lighttpd/conf.d/$name.conf",
- "puppet://$server/modules/lighttpd/conf.d/$operatingsystem.$lsbdistcodename/$name.conf",
- "puppet://$server/modules/lighttpd/conf.d/$operatingsystem/$name.conf",
- "puppet://$server/modules/lighttpd/conf.d/$name.conf"
+ "puppet:///modules/site-lighttpd/conf.d/$fqdn/$name.conf",
+ "puppet:///modules/site-lighttpd/conf.d/$lighttpd_cluster_node/$name.conf",
+ "puppet:///modules/site-lighttpd/conf.d/$operatingsystem.$lsbdistcodename/$name.conf",
+ "puppet:///modules/site-lighttpd/conf.d/$operatingsystem/$name.conf",
+ "puppet:///modules/site-lighttpd/conf.d/$name.conf",
+ "puppet:///modules/lighttpd/conf.d/$name.conf",
+ "puppet:///modules/lighttpd/conf.d/$operatingsystem.$lsbdistcodename/$name.conf",
+ "puppet:///modules/lighttpd/conf.d/$operatingsystem/$name.conf",
+ "puppet:///modules/lighttpd/conf.d/$name.conf"
],
- default => "puppet://$server/$conf_source",
+ default => "puppet:///$conf_source",
}
}
}
File["/etc/lighttpd/vhosts.d/${name}.conf"]{
source => $vhost_source ? {
'absent' => [
- "puppet://$server/modules/site-lighttpd/vhosts.d/$fqdn/$name.conf",
- "puppet://$server/modules/site-lighttpd/vhosts.d/$lighttpd_cluster_node/$name.conf",
- "puppet://$server/modules/site-lighttpd/vhosts.d/$operatingsystem.$lsbdistcodename/$name.conf",
- "puppet://$server/modules/site-lighttpd/vhosts.d/$operatingsystem/$name.conf",
- "puppet://$server/modules/site-lighttpd/vhosts.d/$name.conf",
- "puppet://$server/modules/lighttpd/vhosts.d/$operatingsystem.$lsbdistcodename/$name.conf",
- "puppet://$server/modules/lighttpd/vhosts.d/$operatingsystem/$name.conf",
- "puppet://$server/modules/lighttpd/vhosts.d/$name.conf"
+ "puppet:///modules/site-lighttpd/vhosts.d/$fqdn/$name.conf",
+ "puppet:///modules/site-lighttpd/vhosts.d/$lighttpd_cluster_node/$name.conf",
+ "puppet:///modules/site-lighttpd/vhosts.d/$operatingsystem.$lsbdistcodename/$name.conf",
+ "puppet:///modules/site-lighttpd/vhosts.d/$operatingsystem/$name.conf",
+ "puppet:///modules/site-lighttpd/vhosts.d/$name.conf",
+ "puppet:///modules/lighttpd/vhosts.d/$operatingsystem.$lsbdistcodename/$name.conf",
+ "puppet:///modules/lighttpd/vhosts.d/$operatingsystem/$name.conf",
+ "puppet:///modules/lighttpd/vhosts.d/$name.conf"
],
- default => "puppet://$server/$vhost_source",
+ default => "puppet:///$vhost_source",
}
}
}
class lighttpd::vhosts {
file{'/etc/lighttpd/vhosts.d':
- source => "puppet://$server/modules/common/empty",
+ source => "puppet:///modules/common/empty",
ensure => directory,
purge => true,
recurse => true,