Commit dfc16f3a authored by Marc Fournier's avatar Marc Fournier
Browse files

postfix: added a couple of missing deps

parent ca0e5510
...@@ -3,6 +3,7 @@ define postfix::hash ($ensure) { ...@@ -3,6 +3,7 @@ define postfix::hash ($ensure) {
ensure => $ensure, ensure => $ensure,
mode => 600, mode => 600,
seltype => "postfix_etc_t", seltype => "postfix_etc_t",
require => Package["postfix"],
} }
file {"${name}.db": file {"${name}.db":
...@@ -16,6 +17,7 @@ define postfix::hash ($ensure) { ...@@ -16,6 +17,7 @@ define postfix::hash ($ensure) {
command => "postmap ${name}", command => "postmap ${name}",
#creates => "${name}.db", # this prevents postmap from being run ! #creates => "${name}.db", # this prevents postmap from being run !
subscribe => File["${name}"], subscribe => File["${name}"],
refreshonly => true refreshonly => true,
require => Package["postfix"],
} }
} }
...@@ -4,5 +4,6 @@ define postfix::transport ($ensure, $destination) { ...@@ -4,5 +4,6 @@ define postfix::transport ($ensure, $destination) {
file => "/etc/postfix/transport", file => "/etc/postfix/transport",
line => "${name} ${destination}", line => "${name} ${destination}",
notify => Exec["generate /etc/postfix/transport.db"], notify => Exec["generate /etc/postfix/transport.db"],
require => Package["postfix"],
} }
} }
...@@ -4,5 +4,6 @@ define postfix::virtual ($ensure, $destination) { ...@@ -4,5 +4,6 @@ define postfix::virtual ($ensure, $destination) {
file => "/etc/postfix/virtual", file => "/etc/postfix/virtual",
line => "${name} ${destination}", line => "${name} ${destination}",
notify => Exec["generate /etc/postfix/virtual.db"], notify => Exec["generate /etc/postfix/virtual.db"],
require => Package["postfix"],
} }
} }
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