summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-10-16 17:16:55 +0200
committermh <mh@immerda.ch>2010-10-16 17:16:55 +0200
commit82115f575af62011d85f19d3b4c2ca077b185c67 (patch)
tree28dafc36190e6b7c6e9a39012b4ac39b7a67393f /manifests
parent9a22fb94cb85f744dbb94c4056a2c3d983abd94b (diff)
downloadpuppet-lighttpd-82115f575af62011d85f19d3b4c2ca077b185c67.tar.gz
puppet-lighttpd-82115f575af62011d85f19d3b4c2ca077b185c67.tar.bz2
code style
Diffstat (limited to 'manifests')
-rw-r--r--manifests/config/file.pp62
1 files changed, 31 insertions, 31 deletions
diff --git a/manifests/config/file.pp b/manifests/config/file.pp
index af6580f..8993693 100644
--- a/manifests/config/file.pp
+++ b/manifests/config/file.pp
@@ -1,37 +1,37 @@
define lighttpd::config::file(
- $ensure = present,
- $conf_source = 'absent',
- $content = 'absent'
+ $ensure = present,
+ $conf_source = 'absent',
+ $content = 'absent'
){
- file{"/etc/lighttpd/conf.d/${name}.conf":
- ensure => $ensure,
- notify => Service['lighttpd'],
- owner => root, group => 0, mode => 0644;
- }
+ file{"/etc/lighttpd/conf.d/${name}.conf":
+ ensure => $ensure,
+ notify => Service['lighttpd'],
+ owner => root, group => 0, mode => 0644;
+ }
- case $content {
- 'absent': {
- File["/etc/lighttpd/conf.d/${name}.conf"]{
- source => $conf_source ? {
- 'absent' => [
- "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:///$conf_source",
- }
- }
- }
- default: {
- File["/etc/lighttpd/conf.d/${name}.conf"]{
- content => $content,
- }
+ case $content {
+ 'absent': {
+ File["/etc/lighttpd/conf.d/${name}.conf"]{
+ source => $conf_source ? {
+ 'absent' => [
+ "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:///$conf_source",
}
+ }
+ }
+ default: {
+ File["/etc/lighttpd/conf.d/${name}.conf"]{
+ content => $content,
+ }
}
+ }
}