From b6b17c6d36e41413136cfef3d69d7711872b8674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 13 Jun 2013 14:01:01 +0300 Subject: [PATCH] lsb: Initial version of module. --- lsb/manifests/init.pp | 53 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 lsb/manifests/init.pp diff --git a/lsb/manifests/init.pp b/lsb/manifests/init.pp new file mode 100644 index 0000000..56e95fa --- /dev/null +++ b/lsb/manifests/init.pp @@ -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, + } + +} +