refactor perl module, add speedycgi extenstion
authormh <mh@immerda.ch>
Fri, 17 Sep 2010 12:13:36 +0000 (14:13 +0200)
committermh <mh@immerda.ch>
Fri, 17 Sep 2010 12:13:36 +0000 (14:13 +0200)
manifests/base.pp [new file with mode: 0644]
manifests/extensions/speedycgi.pp [new file with mode: 0644]
manifests/init.pp
manifests/module.pp [moved from manifests/defines.pp with 87% similarity]

diff --git a/manifests/base.pp b/manifests/base.pp
new file mode 100644 (file)
index 0000000..a689cb1
--- /dev/null
@@ -0,0 +1,5 @@
+class perl::base {
+  package{'perl':
+    ensure => installed,
+  }
+}
diff --git a/manifests/extensions/speedycgi.pp b/manifests/extensions/speedycgi.pp
new file mode 100644 (file)
index 0000000..d41c9f2
--- /dev/null
@@ -0,0 +1,3 @@
+class perl::extensions::speedycgi {
+  perl::module{'CGI-SpeedyCGI': }
+}
index 8517831..4c5062a 100644 (file)
@@ -5,16 +5,8 @@
 # Marcel Härry haerry+puppet(at)puzzle.ch
 # Simon Josi josi+puppet(at)puzzle.ch
 
-import 'defines.pp'
-
 class perl {
     case $operatingsystem {
         default: { include perl::base }
     }
 }
-
-class perl::base {
-    package{'perl':
-        ensure => installed,
-    }
-}
similarity index 87%
rename from manifests/defines.pp
rename to manifests/module.pp
index c4055bd..f9a90d6 100644 (file)
@@ -1,5 +1,3 @@
-# manifests/defines.pp
-
 define perl::module (
     $ensure = 'present'
 ) {