aboutsummaryrefslogtreecommitdiff
path: root/manifests/server/service.pp
diff options
context:
space:
mode:
authorVladimir Rutsky <rutsky.vladimir@gmail.com>2013-03-19 16:40:40 +0400
committerAdam Jahn <ajjahn@gmail.com>2013-03-19 21:21:41 -0400
commitd69032f73e0bf0d65072659c77a8fded1746c9db (patch)
tree514452b751b993c905500df3b34e119867d38233 /manifests/server/service.pp
parentb8d1efbb43fb663deb3d4ae12e821a626a4f9980 (diff)
downloadpuppet-samba-d69032f73e0bf0d65072659c77a8fded1746c9db.tar.gz
puppet-samba-d69032f73e0bf0d65072659c77a8fded1746c9db.tar.bz2
Add support for Gentoo OS
Diffstat (limited to 'manifests/server/service.pp')
-rw-r--r--manifests/server/service.pp15
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.") }
}