blob: 2c6f590be8ec65f77320b067b3ed5f3edc061835 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
class samba::server::service ($ensure = running, $enable = true) {
case $::osfamily {
Redhat: { $service_name = 'smb' }
Debian: { $service_name = 'smbd' }
default: { fail("$::osfamily is not supported by this module.") }
}
service { "$service_name" :
ensure => $ensure,
hasstatus => true,
hasrestart => true,
enable => $enable,
require => Class['samba::server::config']
}
}
|