blob: 68db2d6df2c4f0e4593e2bc02584576b767a73e7 (
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
|
# == Class samba::server::server
#
class samba::server::service (
$ensure = running,
$enable = true
) inherits samba::server::params {
service { $samba::server::params::service_name :
ensure => $ensure,
hasstatus => true,
hasrestart => true,
enable => $enable,
require => Class['samba::server::config']
}
if $samba::server::params::nmbd_name != undef {
service { $samba::server::params::nmbd_name :
ensure => $ensure,
hasrestart => false,
enable => $enable,
require => Class['samba::server::config'],
}
}
}
|