]> gitweb.fluxo.info Git - puppet-samba.git/commitdiff
Merge pull request #13 from artem-sidorenko/master
authorAdam Jahn <ajjahn@gmail.com>
Fri, 10 Jan 2014 23:29:47 +0000 (15:29 -0800)
committerAdam Jahn <ajjahn@gmail.com>
Fri, 10 Jan 2014 23:29:47 +0000 (15:29 -0800)
Added archlinux support

1  2 
manifests/server/service.pp

index 5450437160901700bf2ca4b2735fb40455393c25,55ccb0649a2e195e022fe4d4b32e9c03c4e4a8b7..6f26a6d49e9427a3fcdfd744b227ef8db1e8ca93
@@@ -1,17 -1,9 +1,18 @@@
  class samba::server::service ($ensure = running, $enable = true) {
    case $::osfamily {
        Redhat: { $service_name = 'smb' }
 -      Debian: { $service_name = 'smbd' }
 +
 +      #On Debian family: Debian 7 => samba , Ubuntu => smbd
 +      #Others, I don't know, hope 'samba' will works
 +      Debian: {
 +        case $::operatingsystem{
 +                Debian: { $service_name = 'samba' }
 +                Ubuntu: { $service_name = 'smbd'}
 +                default: { $service_name='samba'}
 +        }
 +      }
        Gentoo: { $service_name = 'samba' }
+       Archlinux: { $service_name = 'smbd' }
  
        # Currently Gentoo has $::osfamily = "Linux". This should change in
        # Factor 1.7.0 <http://projects.puppetlabs.com/issues/17029>, so