Fixing puppet-lint errors.
This commit is contained in:
parent
2f83cb7d4a
commit
34c36045fa
59 changed files with 995 additions and 990 deletions
|
@ -9,7 +9,7 @@
|
|||
class tftp::server {
|
||||
|
||||
if $tftp_datadir {
|
||||
file { "${tftp_datadir}":
|
||||
file { $tftp_datadir:
|
||||
ensure => directory,
|
||||
mode => 0755,
|
||||
owner => root,
|
||||
|
@ -21,9 +21,9 @@ class tftp::server {
|
|||
}
|
||||
file { "/srv/tftpboot":
|
||||
ensure => link,
|
||||
target => "${tftp_datadir}",
|
||||
target => $tftp_datadir,
|
||||
seltype => "tftpdir_t",
|
||||
require => File["${tftp_datadir}"],
|
||||
require => File[$tftp_datadir],
|
||||
}
|
||||
} else {
|
||||
file { "/srv/tftpboot":
|
||||
|
@ -64,8 +64,8 @@ class tftp::server {
|
|||
}
|
||||
if $tftp_datadir {
|
||||
selinux::manage_fcontext { "${tftp_datadir}(/.*)?":
|
||||
type => "tftpdir_t",
|
||||
before => File["${tftp_datadir}"],
|
||||
type => "tftpdir_t",
|
||||
before => File[$tftp_datadir],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue