Skip to content

Commit

Permalink
Added selinux types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Fournier committed Dec 10, 2008
1 parent 28df18c commit 8157cc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/classes/postfix.pp
Expand Up @@ -27,6 +27,7 @@
file { "/etc/mailname":
ensure => present,
content => "${fqdn}\n",
seltype => "postfix_etc_t",
}

# Aliases
Expand All @@ -35,6 +36,7 @@
ensure => present,
content => "# file managed by puppet\n",
replace => false,
seltype => "postfix_etc_t",
notify => Exec["newaliases"],
}

Expand Down
2 changes: 2 additions & 0 deletions manifests/definitions/hash.pp
Expand Up @@ -2,12 +2,14 @@
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":
Expand Down

0 comments on commit 8157cc7

Please sign in to comment.