added from puzzle
authormh <mh@immerda.ch>
Thu, 29 May 2008 16:36:37 +0000 (16:36 +0000)
committermh <mh@immerda.ch>
Thu, 29 May 2008 16:36:37 +0000 (16:36 +0000)
manifests/brokengem.pp [new file with mode: 0644]
manifests/init.pp [new file with mode: 0644]

diff --git a/manifests/brokengem.pp b/manifests/brokengem.pp
new file mode 100644 (file)
index 0000000..0053557
--- /dev/null
@@ -0,0 +1,10 @@
+define rubygems::brokengem($source,$ensure) {
+    exec { "get-gem-$name":
+        command => "/usr/bin/wget --output-document=/tmp/$name.gem $source",
+        creates => "/tmp/$name.gem",
+        before => Package[$name]
+    }
+    package { $name: ensure => $ensure, provider => gem, source => "/tmp/$name.gem" }
+}
+
+# $Id$
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644 (file)
index 0000000..119cc80
--- /dev/null
@@ -0,0 +1,11 @@
+#######################################
+# rubygems module
+# original by luke kanies
+# http://github.com/lak
+# adapted by  Puzzle ITC 
+# haerry+puppet(at)puzzle.ch
+#######################################
+
+class rubygems {
+       package { rubygems: ensure => installed }
+}