aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorMarc Fournier <marc.fournier@camptocamp.com>2008-12-10 21:35:10 +0100
committerMarc Fournier <marc.fournier@camptocamp.com>2008-12-10 21:35:10 +0100
commit8157cc71d8a24633035eb92ef7b34657e4785f29 (patch)
tree01d7cfba50ab7cbcc3f14f6d3e09b0d09f8cb247 /manifests
parent28df18c79fb71407af663ee9b3c214094e1551f1 (diff)
downloadpuppet-postfix-8157cc71d8a24633035eb92ef7b34657e4785f29.tar.gz
puppet-postfix-8157cc71d8a24633035eb92ef7b34657e4785f29.tar.bz2
Added selinux types.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/classes/postfix.pp2
-rw-r--r--manifests/definitions/hash.pp2
2 files changed, 4 insertions, 0 deletions
diff --git a/manifests/classes/postfix.pp b/manifests/classes/postfix.pp
index f943a4e..3645bb2 100644
--- a/manifests/classes/postfix.pp
+++ b/manifests/classes/postfix.pp
@@ -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"],
}
diff --git a/manifests/definitions/hash.pp b/manifests/definitions/hash.pp
index f21e270..827c4cf 100644
--- a/manifests/definitions/hash.pp
+++ b/manifests/definitions/hash.pp
@@ -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":