Skip to content

Instantly share code, notes, and snippets.

@pgibler
Created October 5, 2014 20:33
Show Gist options
  • Save pgibler/71b558315ab97c160b59 to your computer and use it in GitHub Desktop.
Save pgibler/71b558315ab97c160b59 to your computer and use it in GitHub Desktop.
Install ruby at a patchlevel in puppet
$ruby_version = '2.0.0'
$ruby_patchlevel = 'p451'
$full_ruby_version = "ruby-${ruby_version}-${ruby_patchlevel}"
class { 'rvm': }
# Make rvm install ruby at the version and patchlevel we want.
# Here, we install ruby-2.0.0-p451
# Set RVM to use it by default
rvm_system_ruby { $full_ruby_version:
ensure => present,
default_use => true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment