only include devel things where needed
authormh <mh@immerda.ch>
Thu, 14 May 2009 19:43:36 +0000 (21:43 +0200)
committermh <mh@immerda.ch>
Thu, 14 May 2009 19:43:36 +0000 (21:43 +0200)
manifests/brokengem.pp
manifests/gpgme.pp
manifests/init.pp
manifests/tmail.pp

index 0053557..b3284d9 100644 (file)
@@ -4,7 +4,11 @@ define rubygems::brokengem($source,$ensure) {
         creates => "/tmp/$name.gem",
         before => Package[$name]
     }
-    package { $name: ensure => $ensure, provider => gem, source => "/tmp/$name.gem" }
+    package{$name:
+        ensure => $ensure,
+        provider => gem,
+        source => "/tmp/$name.gem"
+    }
 }
 
 # $Id$
index 952c0d6..d2ca409 100644 (file)
@@ -1,10 +1,10 @@
 class rubygems::gpgme{
-  include rubygems
+  include rubygems::devel
   include gpg::gpgme::devel
 
   package{'ruby-gpgme':
     ensure => present,
     provider => gem,
-    require => Package['rubygems'],
+    require => [ Package['rubygems'], Package['gcc'] ],
   }
 }
index 96c1bed..678bd54 100644 (file)
@@ -14,9 +14,7 @@
 #
 
 class rubygems {
-  include ruby::devel
-       package{'rubygems':
+  package{'rubygems':
     ensure => installed,
-    require => Package['ruby-devel'],
   }
 }
index 2510c03..3a2de7f 100644 (file)
@@ -1,7 +1,8 @@
 class rubygems::tmail {
+  include rubygems::devel
   package{'tmail':
     ensure => present,
     provider => gem,
-    require => Package['rubygems'],
+    require => [ Package['rubygems'], Package['gcc'] ],
   }
 }