lsb: Initial version of module.
This commit is contained in:
parent
8a401ca1b3
commit
b6b17c6d36
1 changed files with 53 additions and 0 deletions
53
lsb/manifests/init.pp
Normal file
53
lsb/manifests/init.pp
Normal 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,
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue