merged with puzzle
authormh <mh@immerda.ch>
Sun, 16 Nov 2008 19:46:29 +0000 (19:46 +0000)
committermh <mh@immerda.ch>
Sun, 16 Nov 2008 19:46:29 +0000 (19:46 +0000)
manifests/defines.pp [new file with mode: 0644]
manifests/extensions/dbd_mysql.pp [new file with mode: 0644]
manifests/extensions/ldap.pp [new file with mode: 0644]
manifests/extensions/net_dns.pp [new file with mode: 0644]
manifests/init.pp

diff --git a/manifests/defines.pp b/manifests/defines.pp
new file mode 100644 (file)
index 0000000..c4055bd
--- /dev/null
@@ -0,0 +1,13 @@
+# manifests/defines.pp
+
+define perl::module (
+    $ensure = 'present'
+) {
+    include perl
+
+    package {"perl-${name}": 
+        ensure => $ensure, 
+        require => Package['perl'],
+    }
+}
+
diff --git a/manifests/extensions/dbd_mysql.pp b/manifests/extensions/dbd_mysql.pp
new file mode 100644 (file)
index 0000000..adb3e3e
--- /dev/null
@@ -0,0 +1,6 @@
+# manifests/extensions/dbd_mysql.pp
+
+class perl::extensions::dbd_mysql {
+    perl::module{'DBD-mysql': }
+}
+
diff --git a/manifests/extensions/ldap.pp b/manifests/extensions/ldap.pp
new file mode 100644 (file)
index 0000000..225db1a
--- /dev/null
@@ -0,0 +1,5 @@
+# manifests/extensions/ldap.pp
+
+class perl::extensions::ldap {
+    perl::module{'LDAP': }
+}
diff --git a/manifests/extensions/net_dns.pp b/manifests/extensions/net_dns.pp
new file mode 100644 (file)
index 0000000..6c39713
--- /dev/null
@@ -0,0 +1,5 @@
+# manifests/extensions/net_dns.pp
+
+class perl::extensions::net_dns {
+    perl::module{'Net-DNS': }
+}
index 45ebb2a..8517831 100644 (file)
@@ -1,6 +1,11 @@
 # modules/perl/manifests/init.pp - manage perl stuff
-# Copyright (C) 2007 admin@immerda.ch
+# Copyright (C) 2007 admin(at)immerda.ch
 # GPLv3
+# adapted by Puzzle ITC
+# Marcel Härry haerry+puppet(at)puzzle.ch
+# Simon Josi josi+puppet(at)puzzle.ch
+
+import 'defines.pp'
 
 class perl {
     case $operatingsystem {
@@ -12,9 +17,4 @@ class perl::base {
     package{'perl':
         ensure => installed,
     }
-
-}
-
-define perl::module () {
-    package { "${name}": ensure => installed }
 }