Initial version of gcc module.
This commit is contained in:
parent
760013c658
commit
e32b39c4e7
1 changed files with 24 additions and 0 deletions
24
gcc/manifests/init.pp
Normal file
24
gcc/manifests/init.pp
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
|
||||||
|
# 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-kernel-headers",
|
||||||
|
"ubuntu" => "linux-kernel-headers",
|
||||||
|
default => [ "kernel-headers", "kernel-devel", ],
|
||||||
|
},
|
||||||
|
ensure => installed,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue