Commit 8157cc71 authored by Marc Fournier's avatar Marc Fournier
Browse files

Added selinux types.

parent 28df18c7
......@@ -27,6 +27,7 @@ class postfix-ng {
file { "/etc/mailname":
ensure => present,
content => "${fqdn}\n",
seltype => "postfix_etc_t",
}
# Aliases
......@@ -35,6 +36,7 @@ class postfix-ng {
ensure => present,
content => "# file managed by puppet\n",
replace => false,
seltype => "postfix_etc_t",
notify => Exec["newaliases"],
}
......
......@@ -2,12 +2,14 @@ define postfix-ng::hash ($ensure) {
file {"${name}":
ensure => $ensure,
mode => 600,
seltype => "postfix_etc_t",
}
file {"${name}.db":
ensure => $ensure,
mode => 600,
require => [File["${name}"], Exec["generate ${name}.db"]],
seltype => "postfix_etc_t",
}
exec {"generate ${name}.db":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment