Puppet Class: samba::params

Inherited by:
samba::client
samba::server
samba::winbind
Defined in:
manifests/params.pp

Overview

Class: samba::params



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'manifests/params.pp', line 3

class samba::params {
  $manage_packages     = true
  $manage_firewall     = false

  # globals
  $config              = '/etc/samba/smb.conf'
  $logdir              = '/var/log/samba'
  $hosts_allow         = []
  $interfaces          = []
  $global_workgroup    = undef

  # Stand Alone Server Options
  $sa_security         = 'user'
  $passdb_backend      = 'tdbsam'

  # Printer Options
  $printer             = true

  # Winbind
  $workgroup           = undef
  $passwd_server       = undef
  $realm               = undef
  $security            = undef
  $idmap_uid           = undef
  $idmap_gid           = undef
  $seperator           = undef
  $shell               = undef
  $use_default_domain  = undef
  $offline_login       = undef

  case $::osfamily {
    RedHat: {
      $client_package_name    = 'samba-client'
      $server_package_name    = 'samba'
      $samba_service          = 'smb'
      $winbind_package        = 'samba-winbind'
      $winbind_service        = 'winbind'
    }
    Debian: {
      $client_package_name    = 'smbclient'
      $server_package_name    = 'samba'
      $samba_service          = 'smbd'
      $winbind_service        = 'winbind'
      $winbind_package        = 'winbind'
    }
    default: {
      fail("${::osfamily} is currently not supported by this module.")
    }
  }

}