Guest User

Untitled

a guest
Sep 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. # /etc/puppet/manifests/classes/fixedruby18.pp
  2. #
  3. # bigbluebutton can't install without a recent rubygems, with which Ubuntu 10.04 doesn't ship.
  4. # This might be brittle due to requiring gem to be 1.x where x >=8; fix the test for points.
  5.  
  6. class fixedruby18 {
  7. exec { "install_update_rubygems1.8":
  8. command => "/usr/bin/gem1.8 install rubygems-update",
  9. creates => "/var/lib/gems/1.8/bin/update_rubygems",
  10. require => Package["rubygems1.8"],
  11. }
  12. exec { "update_rubygems1.8":
  13. require => Exec["install_update_rubygems1.8"],
  14. command => "/var/lib/gems/1.8/bin/update_rubygems",
  15. onlyif => "test `gem1.8 -v | cut -f 1 -d .` -eq 1 -a `gem1.8 -v | cut -f 2 -d .` -lt 8",
  16. path => "/usr/bin",
  17. }
  18. package { ["ruby1.8-dev", "rubygems1.8"]:
  19. ensure => installed,
  20. }
  21. }
Add Comment
Please, Sign In to add comment