Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/puppet/manifests/classes/fixedruby18.pp
- #
- # bigbluebutton can't install without a recent rubygems, with which Ubuntu 10.04 doesn't ship.
- # This might be brittle due to requiring gem to be 1.x where x >=8; fix the test for points.
- class fixedruby18 {
- exec { "install_update_rubygems1.8":
- command => "/usr/bin/gem1.8 install rubygems-update",
- creates => "/var/lib/gems/1.8/bin/update_rubygems",
- require => Package["rubygems1.8"],
- }
- exec { "update_rubygems1.8":
- require => Exec["install_update_rubygems1.8"],
- command => "/var/lib/gems/1.8/bin/update_rubygems",
- onlyif => "test `gem1.8 -v | cut -f 1 -d .` -eq 1 -a `gem1.8 -v | cut -f 2 -d .` -lt 8",
- path => "/usr/bin",
- }
- package { ["ruby1.8-dev", "rubygems1.8"]:
- ensure => installed,
- }
- }
Add Comment
Please, Sign In to add comment