]> gitweb.fluxo.info Git - puppet-lighttpd.git/commitdiff
code style
authormh <mh@immerda.ch>
Sat, 16 Oct 2010 15:16:55 +0000 (17:16 +0200)
committermh <mh@immerda.ch>
Sat, 16 Oct 2010 15:16:55 +0000 (17:16 +0200)
manifests/config/file.pp

index af6580f6d2223b04594b02e925bd4db495fc9cab..8993693dadc1a51a06080710d30a0079e3fbf109 100644 (file)
@@ -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,
+      }
     }
+  }
 }