Fixing puppet-lint errors.
This commit is contained in:
parent
2f83cb7d4a
commit
34c36045fa
59 changed files with 995 additions and 990 deletions
|
@ -12,7 +12,7 @@ class selinux {
|
|||
if $kernel != "Linux" {
|
||||
fail("SELinux supported only on Linux systems")
|
||||
}
|
||||
|
||||
|
||||
if ! $selinux_type {
|
||||
$selinux_type = "permissive"
|
||||
}
|
||||
|
@ -22,11 +22,11 @@ class selinux {
|
|||
"disabled": {}
|
||||
default: { fail("Invalid SELinux mode ${selinux_type}") }
|
||||
}
|
||||
|
||||
|
||||
package { [ "selinux-policy-targeted", "setroubleshoot" ]:
|
||||
ensure => installed,
|
||||
}
|
||||
|
||||
|
||||
file { "/etc/selinux/config":
|
||||
ensure => present,
|
||||
content => template("selinux/config.erb"),
|
||||
|
@ -62,7 +62,7 @@ class selinux {
|
|||
unless => "getenforce | egrep -i '${selinux_type}'",
|
||||
require => File["/etc/selinux/config"],
|
||||
}
|
||||
|
||||
|
||||
include selinux::tools
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue