merged with lak
authorMarcel Haerry <haerry@puzzle.ch>
Mon, 19 May 2008 13:27:56 +0000 (15:27 +0200)
committerMarcel Haerry <haerry@puzzle.ch>
Mon, 19 May 2008 13:27:56 +0000 (15:27 +0200)
manifests/brokengem.pp [new file with mode: 0644]
manifests/init.pp

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$
index 8e7ddd6..119cc80 100644 (file)
@@ -1,9 +1,11 @@
 #######################################
 # rubygems module
-# Puzzle ITC - haerry+puppet(at)puzzle.ch
-# GPLv3
+# original by luke kanies
+# http://github.com/lak
+# adapted by  Puzzle ITC 
+# haerry+puppet(at)puzzle.ch
 #######################################
 
-
-# modules_dir { "rubygems": }
-class rubygems {}
+class rubygems {
+       package { rubygems: ensure => installed }
+}