Fixed tftp module for OpenBSD.
This commit is contained in:
parent
9ec1334414
commit
e00971ce3f
1 changed files with 18 additions and 10 deletions
|
@ -26,8 +26,11 @@ class tftp::server {
|
|||
file { "/srv/tftpboot":
|
||||
ensure => directory,
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
group => root,
|
||||
owner => "root",
|
||||
group => $operatingsystem ? {
|
||||
"openbsd" => "wheel",
|
||||
default => "root",
|
||||
},
|
||||
seltype => "tftpdir_t",
|
||||
}
|
||||
}
|
||||
|
@ -64,13 +67,15 @@ class tftp::server {
|
|||
}
|
||||
}
|
||||
|
||||
package { "tftp-server":
|
||||
name => $operatingsystem ? {
|
||||
ubuntu => "tftpd-hpa",
|
||||
debian => "tftpd-hpa",
|
||||
default => "tftp-server",
|
||||
},
|
||||
ensure => installed,
|
||||
if $operatingsystem != "OpenBSD" {
|
||||
package { "tftp-server":
|
||||
name => $operatingsystem ? {
|
||||
ubuntu => "tftpd-hpa",
|
||||
debian => "tftpd-hpa",
|
||||
default => "tftp-server",
|
||||
},
|
||||
ensure => installed,
|
||||
}
|
||||
}
|
||||
|
||||
case $operatingsystem {
|
||||
|
@ -87,7 +92,10 @@ class tftp::server {
|
|||
include inetd::server
|
||||
inetd::service { "tftp":
|
||||
ensure => present,
|
||||
require => Package["tftp-server"],
|
||||
require => $operatingsystem ? {
|
||||
"openbsd" => undef,
|
||||
default => Package["tftp-server"],
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue