lsb: Initial version of module.

This commit is contained in:
Timo Mkinen 2013-06-13 14:01:01 +03:00
parent 8a401ca1b3
commit b6b17c6d36

53
lsb/manifests/init.pp Normal file
View file

@ -0,0 +1,53 @@
# Add LSB Core system components
#
class lsb::core {
if $::kernel != "Linux" {
fail("LSB module is supported only in Linux systems")
}
case $::operatingsystem {
"centos","fedora","redhat": {
$pkgname = "redhat-lsb-core"
}
"ubuntu": {
$pkgname = "lsb-core"
}
}
package { "lsb-core":
ensure => installed,
name => $pkgname,
}
}
# Add LSB Desktop system components
#
class lsb::desktop {
if $::kernel != "Linux" {
fail("LSB module is supported only in Linux systems")
}
case $::operatingsystem {
"centos","redhat": {
$pkgname = "redhat-lsb-graphics"
}
"fedora": {
$pkgname = "redhat-lsb-desktop"
}
"ubuntu": {
$pkgname = "lsb-desktop"
}
}
package { "lsb-desktop":
ensure => installed,
name => $pkgname,
}
}