Added selinux types.
This commit is contained in:
parent
28df18c79f
commit
8157cc71d8
2 changed files with 4 additions and 0 deletions
|
@ -27,6 +27,7 @@ class postfix-ng {
|
||||||
file { "/etc/mailname":
|
file { "/etc/mailname":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => "${fqdn}\n",
|
content => "${fqdn}\n",
|
||||||
|
seltype => "postfix_etc_t",
|
||||||
}
|
}
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
|
@ -35,6 +36,7 @@ class postfix-ng {
|
||||||
ensure => present,
|
ensure => present,
|
||||||
content => "# file managed by puppet\n",
|
content => "# file managed by puppet\n",
|
||||||
replace => false,
|
replace => false,
|
||||||
|
seltype => "postfix_etc_t",
|
||||||
notify => Exec["newaliases"],
|
notify => Exec["newaliases"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,12 +2,14 @@ define postfix-ng::hash ($ensure) {
|
||||||
file {"${name}":
|
file {"${name}":
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
mode => 600,
|
mode => 600,
|
||||||
|
seltype => "postfix_etc_t",
|
||||||
}
|
}
|
||||||
|
|
||||||
file {"${name}.db":
|
file {"${name}.db":
|
||||||
ensure => $ensure,
|
ensure => $ensure,
|
||||||
mode => 600,
|
mode => 600,
|
||||||
require => [File["${name}"], Exec["generate ${name}.db"]],
|
require => [File["${name}"], Exec["generate ${name}.db"]],
|
||||||
|
seltype => "postfix_etc_t",
|
||||||
}
|
}
|
||||||
|
|
||||||
exec {"generate ${name}.db":
|
exec {"generate ${name}.db":
|
||||||
|
|
Loading…
Reference in a new issue