Permalink
Browse files

Added case for fedora's ruby lib path

  • Loading branch information...
1 parent 6e06458 commit eb8bd2f9a623ba3d0e8a8ec69492097f1be83cd9 Frank Spijkerman committed Sep 6, 2012
Showing with 10 additions and 2 deletions.
  1. +10 −2 manifests/init.pp
View
@@ -3,10 +3,18 @@
# looks for reporting scripts.
class kicker {
- file {"/usr/lib/ruby/1.8/puppet/reports/kick.rb":
+ case $::operatingsystem {
+ 'Debian', 'Ubuntu': {
+ $ruby_lib_path = "/usr/lib/ruby/1.8"
+ }
+ 'CentOS','Fedora': {
+ $ruby_lib_path = "/usr/lib/ruby/site_ruby/1.8"
+ }
+ }
+ file {"$ruby_lib_path/puppet/reports/kick.rb":
mode => '0444',
owner => 'puppet',
group => 'puppet',
source => 'puppet:///modules/kicker/kick.rb',
}
-}
+}

0 comments on commit eb8bd2f

Please sign in to comment.