Sha256: 3e59640b07bfe0ce364a65e2163074c162f11a808bc38c3883c3bb57089d6bbe
Contents?: true
Size: 957 Bytes
Versions: 6
Compression:
Stored size: 957 Bytes
Contents
module VagrantVbguest module Installers class RedHat < Linux # Scientific Linux and CentOS show up as :redhat (or "centos7") # fortunately they're probably both similar enough to RHEL # (RedHat Enterprise Linux) not to matter. def self.match?(vm) /\A(redhat|centos|amazon)\d*\Z/ =~ self.distro(vm) end # Install missing deps and yield up to regular linux installation def install(opts=nil, &block) communicate.sudo(install_dependencies_cmd, opts, &block) super end protected def install_dependencies_cmd "yum install -y #{dependencies}" end def dependencies [ 'kernel-devel', 'kernel-devel-`uname -r`', 'gcc', 'binutils', 'make', 'perl', 'bzip2' ].join(' ') end end end end VagrantVbguest::Installer.register(VagrantVbguest::Installers::RedHat, 5)
Version data entries
6 entries across 6 versions & 1 rubygems