Renamed gcc as gnu::gcc

This commit is contained in:
Ossi Salmi 2013-07-16 15:27:45 +03:00
parent 9efcac9bf6
commit 11cd7e0d56
4 changed files with 28 additions and 27 deletions

View file

@ -1,24 +0,0 @@
# Install GCC
#
# On Linux hosts this will also install headers required for compiling
# kernel modules.
#
class gcc {
package { "gcc":
ensure => installed,
}
if $::kernel == Linux {
package { "kernel-headers":
name => $::operatingsystem ? {
"debian" => "linux-libc-dev",
"ubuntu" => "linux-libc-dev",
default => [ "kernel-headers", "kernel-devel", ],
},
ensure => installed,
}
}
}

View file

@ -1,3 +1,28 @@
# Install GCC.
#
# On Linux hosts this will also install headers required for compiling
# kernel modules.
#
class gnu::gcc {
package { "gcc":
ensure => installed,
}
if $::kernel == Linux {
package { "kernel-headers":
name => $::operatingsystem ? {
"debian" => "linux-libc-dev",
"ubuntu" => "linux-libc-dev",
default => [ "kernel-headers", "kernel-devel", ],
},
ensure => installed,
}
}
}
# Install GNU make.
#
class gnu::make {

View file

@ -4,7 +4,7 @@ class ruby::rubygems {
tag("bootstrap")
require gcc
require gnu::gcc
require gnu::make
package { "ruby-devel":

View file

@ -11,6 +11,8 @@
#
define vmware::bundle() {
require gnu::gcc
file { "/usr/local/src/${name}.bundle":
ensure => present,
source => "puppet:///files/packages/${name}.${architecture}.bundle",
@ -28,12 +30,10 @@ define vmware::bundle() {
notify => Exec["vmware-modconfig"],
}
include gcc
exec { "vmware-modconfig":
command => "vmware-modconfig --console --install-all",
path => "/bin:/usr/bin:/sbin:/usr/sbin",
creates => "/lib/modules/${kernelrelease}/misc/vmci.ko",
require => Class["gcc"],
}
}