Fixed samba::server startup for CentOS 6.
This commit is contained in:
parent
74a6985d36
commit
f6316d8c50
1 changed files with 25 additions and 8 deletions
|
@ -25,6 +25,30 @@ class samba::server {
|
||||||
subscribe => File["/etc/samba/smb.conf"],
|
subscribe => File["/etc/samba/smb.conf"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
centos: {
|
||||||
|
case $operatingsystemrelease {
|
||||||
|
/^[1-5]\./: {
|
||||||
|
service { "smb":
|
||||||
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
|
hasstatus => true,
|
||||||
|
hasrestart => true,
|
||||||
|
require => File["/etc/samba/smb.conf"],
|
||||||
|
subscribe => File["/etc/samba/smb.conf"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
service { [ "smb", "nmb" ]:
|
||||||
|
ensure => running,
|
||||||
|
enable => true,
|
||||||
|
hasstatus => true,
|
||||||
|
hasrestart => true,
|
||||||
|
require => File["/etc/samba/smb.conf"],
|
||||||
|
subscribe => File["/etc/samba/smb.conf"],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
fedora: {
|
fedora: {
|
||||||
service { [ "smb", "nmb" ]:
|
service { [ "smb", "nmb" ]:
|
||||||
ensure => running,
|
ensure => running,
|
||||||
|
@ -46,14 +70,7 @@ class samba::server {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
service { "smb":
|
fail("samba::server not supported in '${operatingsystem}'")
|
||||||
ensure => running,
|
|
||||||
enable => true,
|
|
||||||
hasstatus => true,
|
|
||||||
hasrestart => true,
|
|
||||||
require => File["/etc/samba/smb.conf"],
|
|
||||||
subscribe => File["/etc/samba/smb.conf"],
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue