I have upgraded my default Ruby (1.8.6) to a newer one (1.8.7). But whenever I run Puppet, it seems to somehow constantly run under Ruby 1.8.6. How do I fix this?
exec { "unload-ruby":
command => "wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p370.tar.gz >> /tmp/ruby.log && tar -zxf ruby-1.8.7-p370.tar.gz >> /tmp/ruby.log",
cwd => "/tmp",
path => "/bin:/usr/bin",
#require => Package["ruby"],
onlyif => "ruby -v | grep 1.8.6",
}
exec { "config-ruby":
command => "/tmp/ruby-1.8.7-p370/configure --enable-pthread >> /tmp/ruby.log",
cwd => "/tmp/ruby-1.8.7-p370",
path => "/bin:/usr/bin",
require => Exec["unload-ruby"],
onlyif => "ruby -v | grep 1.8.6",
}
exec { "make-ruby":
command => "make >> /tmp/ruby.log && make install >> /tmp/ruby.log",
cwd => "/tmp/ruby-1.8.7-p370",
path => "/bin:/usr/bin",
require => Exec["config-ruby"],
onlyif => "ruby -v | grep 1.8.6",
}
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.