Syntax cleanup

This commit is contained in:
Ossi Salmi 2013-06-13 15:34:11 +03:00
parent 6efac4de21
commit c8fbeb22f6
5 changed files with 7 additions and 7 deletions

View file

@ -530,7 +530,7 @@ class ldap::server {
}
}
if "${selinux}" == "true" {
if $::selinux == "true" {
selinux::manage_fcontext { "/srv/ldap(/.*)?":
type => "slapd_db_t",
before => File["/srv/ldap"],

View file

@ -56,7 +56,7 @@ class mysql::server {
}
}
if "${selinux}" == "true" {
if $::selinux == "true" {
selinux::manage_fcontext { "/srv/mysql(/.*)?":
type => "mysqld_db_t",
before => File["/srv/mysql"],

View file

@ -177,7 +177,7 @@ define selinux::boolean($value) {
#
define selinux::manage_fcontext($type, $recurse = true) {
if "${selinux}" == "true" {
if $::selinux == "true" {
include selinux::tools
@ -225,7 +225,7 @@ define selinux::manage_fcontext($type, $recurse = true) {
#
define selinux::manage_port($type, $proto) {
if "${selinux}" == "true" {
if $::selinux == "true" {
include selinux::tools
@ -257,7 +257,7 @@ define selinux::manage_port($type, $proto) {
#
define selinux::module($source) {
if "${selinux}" == "true" {
if $::selinux == "true" {
$ext = regsubst($source, '.*\.(te|pp)', '\1')
case $ext {

View file

@ -292,7 +292,7 @@ class syslog::common::standalone inherits syslog::common {
require => File["/usr/local/sbin/logarchiver.sh"],
}
if "${selinux}" == "true" {
if $::selinux == "true" {
selinux::manage_fcontext { "/srv/log(/all\\.log)?":
type => "var_log_t",
before => File["/srv/log"],

View file

@ -64,7 +64,7 @@ class tftp::server {
require => File["/srv/tftpboot"],
}
if "${selinux}" == "true" {
if $::selinux == "true" {
selinux::manage_fcontext { "/srv/tftpboot(/.*)?":
type => "tftpdir_t",
before => File["/srv/tftpboot"],