Skip to content

Commit

Permalink
Merge pull request #3 from pdrakeweb/graylog2-updates
Browse files Browse the repository at this point in the history
Added necessary rubygems update.
  • Loading branch information
ezigler committed Feb 14, 2012
2 parents 33be9f1 + 638980f commit 85ae3cd
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion manifests/web.pp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,29 @@

include apache

package { "rubygems-update":
ensure => installed,
provider => gem,
}

exec { "update-rubygems":
path => "/bin:/usr/bin:/usr/local/bin:/var/lib/gems/1.8/bin",
command => "update_rubygems",
creates => "/usr/bin/gem1.8",
require => Package["rubygems-update"],
}

package { "ruby-dev":
ensure => installed,
require => Exec["update-rubygems"],
}

if !defined(Package["bundler"]) {
package { "bundler": ensure => latest, provider => gem }
package { "bundler":
ensure => latest,
provider => gem,
require => Package["ruby1.8-dev"],
}
}

if !defined(Package["libapache2-mod-passenger"]) {
Expand Down

0 comments on commit 85ae3cd

Please sign in to comment.