diff options
author | Vladimir Rutsky <rutsky.vladimir@gmail.com> | 2013-03-19 16:40:40 +0400 |
---|---|---|
committer | Adam Jahn <ajjahn@gmail.com> | 2013-03-19 21:21:41 -0400 |
commit | d69032f73e0bf0d65072659c77a8fded1746c9db (patch) | |
tree | 514452b751b993c905500df3b34e119867d38233 /manifests | |
parent | b8d1efbb43fb663deb3d4ae12e821a626a4f9980 (diff) | |
download | puppet-samba-d69032f73e0bf0d65072659c77a8fded1746c9db.tar.gz puppet-samba-d69032f73e0bf0d65072659c77a8fded1746c9db.tar.bz2 |
Add support for Gentoo OS
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/server/service.pp | 15 |
1 files changed, 13 insertions, 2 deletions
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 <http://projects.puppetlabs.com/issues/17029>, 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.") } } |