From d69032f73e0bf0d65072659c77a8fded1746c9db Mon Sep 17 00:00:00 2001 From: Vladimir Rutsky Date: Tue, 19 Mar 2013 16:40:40 +0400 Subject: Add support for Gentoo OS --- manifests/server/service.pp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'manifests') diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 2c6f590..4bbe47f 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -1,7 +1,18 @@ class samba::server::service ($ensure = running, $enable = true) { case $::osfamily { - Redhat: { $service_name = 'smb' } - Debian: { $service_name = 'smbd' } + Redhat: { $service_name = 'smb' } + Debian: { $service_name = 'smbd' } + Gentoo: { $service_name = 'samba' } + + # Currently Gentoo has $::osfamily = "Linux". This should change in + # Factor 1.7.0 , so + # adding workaround. + Linux: { + case $::operatingsystem { + Gentoo: { $service_name = 'samba' } + default: { fail("$::operatingsystem is not supported by this module.") } + } + } default: { fail("$::osfamily is not supported by this module.") } } -- cgit v1.2.3