blob: 1a9fbe74c0572a9041bf0a0188aa9ed7f9e8ce40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# == Class samba::server::server
#
class samba::server::service (
$ensure = running,
$enable = true
) inherits samba::server::params {
service { $service_name :
ensure => $ensure,
hasstatus => true,
hasrestart => true,
enable => $enable,
require => Class['samba::server::config']
}
if $nmbd_name != undef {
service { $nmbd_name :
ensure => $ensure,
hasrestart => false,
enable => $enable,
require => Class['samba::server::config'],
}
}
}
|