Syntax cleanup
This commit is contained in:
parent
6efac4de21
commit
c8fbeb22f6
5 changed files with 7 additions and 7 deletions
|
@ -530,7 +530,7 @@ class ldap::server {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if "${selinux}" == "true" {
|
if $::selinux == "true" {
|
||||||
selinux::manage_fcontext { "/srv/ldap(/.*)?":
|
selinux::manage_fcontext { "/srv/ldap(/.*)?":
|
||||||
type => "slapd_db_t",
|
type => "slapd_db_t",
|
||||||
before => File["/srv/ldap"],
|
before => File["/srv/ldap"],
|
||||||
|
|
|
@ -56,7 +56,7 @@ class mysql::server {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if "${selinux}" == "true" {
|
if $::selinux == "true" {
|
||||||
selinux::manage_fcontext { "/srv/mysql(/.*)?":
|
selinux::manage_fcontext { "/srv/mysql(/.*)?":
|
||||||
type => "mysqld_db_t",
|
type => "mysqld_db_t",
|
||||||
before => File["/srv/mysql"],
|
before => File["/srv/mysql"],
|
||||||
|
|
|
@ -177,7 +177,7 @@ define selinux::boolean($value) {
|
||||||
#
|
#
|
||||||
define selinux::manage_fcontext($type, $recurse = true) {
|
define selinux::manage_fcontext($type, $recurse = true) {
|
||||||
|
|
||||||
if "${selinux}" == "true" {
|
if $::selinux == "true" {
|
||||||
|
|
||||||
include selinux::tools
|
include selinux::tools
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ define selinux::manage_fcontext($type, $recurse = true) {
|
||||||
#
|
#
|
||||||
define selinux::manage_port($type, $proto) {
|
define selinux::manage_port($type, $proto) {
|
||||||
|
|
||||||
if "${selinux}" == "true" {
|
if $::selinux == "true" {
|
||||||
|
|
||||||
include selinux::tools
|
include selinux::tools
|
||||||
|
|
||||||
|
@ -257,7 +257,7 @@ define selinux::manage_port($type, $proto) {
|
||||||
#
|
#
|
||||||
define selinux::module($source) {
|
define selinux::module($source) {
|
||||||
|
|
||||||
if "${selinux}" == "true" {
|
if $::selinux == "true" {
|
||||||
|
|
||||||
$ext = regsubst($source, '.*\.(te|pp)', '\1')
|
$ext = regsubst($source, '.*\.(te|pp)', '\1')
|
||||||
case $ext {
|
case $ext {
|
||||||
|
|
|
@ -292,7 +292,7 @@ class syslog::common::standalone inherits syslog::common {
|
||||||
require => File["/usr/local/sbin/logarchiver.sh"],
|
require => File["/usr/local/sbin/logarchiver.sh"],
|
||||||
}
|
}
|
||||||
|
|
||||||
if "${selinux}" == "true" {
|
if $::selinux == "true" {
|
||||||
selinux::manage_fcontext { "/srv/log(/all\\.log)?":
|
selinux::manage_fcontext { "/srv/log(/all\\.log)?":
|
||||||
type => "var_log_t",
|
type => "var_log_t",
|
||||||
before => File["/srv/log"],
|
before => File["/srv/log"],
|
||||||
|
|
|
@ -64,7 +64,7 @@ class tftp::server {
|
||||||
require => File["/srv/tftpboot"],
|
require => File["/srv/tftpboot"],
|
||||||
}
|
}
|
||||||
|
|
||||||
if "${selinux}" == "true" {
|
if $::selinux == "true" {
|
||||||
selinux::manage_fcontext { "/srv/tftpboot(/.*)?":
|
selinux::manage_fcontext { "/srv/tftpboot(/.*)?":
|
||||||
type => "tftpdir_t",
|
type => "tftpdir_t",
|
||||||
before => File["/srv/tftpboot"],
|
before => File["/srv/tftpboot"],
|
||||||
|
|
Loading…
Add table
Reference in a new issue