diff options
-rw-r--r-- | manifests/definitions/hash.pp | 4 | ||||
-rw-r--r-- | manifests/definitions/transport.pp | 1 | ||||
-rw-r--r-- | manifests/definitions/virtual.pp | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/manifests/definitions/hash.pp b/manifests/definitions/hash.pp index f6fbfb6..2ecbff8 100644 --- a/manifests/definitions/hash.pp +++ b/manifests/definitions/hash.pp @@ -3,6 +3,7 @@ define postfix::hash ($ensure) { ensure => $ensure, mode => 600, seltype => "postfix_etc_t", + require => Package["postfix"], } file {"${name}.db": @@ -16,6 +17,7 @@ define postfix::hash ($ensure) { command => "postmap ${name}", #creates => "${name}.db", # this prevents postmap from being run ! subscribe => File["${name}"], - refreshonly => true + refreshonly => true, + require => Package["postfix"], } } diff --git a/manifests/definitions/transport.pp b/manifests/definitions/transport.pp index 1624bcc..0e462cb 100644 --- a/manifests/definitions/transport.pp +++ b/manifests/definitions/transport.pp @@ -4,5 +4,6 @@ define postfix::transport ($ensure, $destination) { file => "/etc/postfix/transport", line => "${name} ${destination}", notify => Exec["generate /etc/postfix/transport.db"], + require => Package["postfix"], } } diff --git a/manifests/definitions/virtual.pp b/manifests/definitions/virtual.pp index 6f3961a..7511340 100644 --- a/manifests/definitions/virtual.pp +++ b/manifests/definitions/virtual.pp @@ -4,5 +4,6 @@ define postfix::virtual ($ensure, $destination) { file => "/etc/postfix/virtual", line => "${name} ${destination}", notify => Exec["generate /etc/postfix/virtual.db"], + require => Package["postfix"], } } |