Commit 5d2a8d50 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Quality the postmap command in postfix::hash

Fix #75 and #85
parent a0958dcf
......@@ -66,6 +66,7 @@ define postfix::hash (
exec {"generate ${name}.db":
command => "postmap ${name}",
path => $::path,
#creates => "${name}.db", # this prevents postmap from being run !
subscribe => File[$name],
refreshonly => true,
......
......@@ -4,6 +4,7 @@ describe 'postfix::mta' do
let (:facts) { {
:lsbdistcodename => 'wheezy',
:osfamily => 'Debian',
:path => '/foo/bar',
} }
let :pre_condition do
"class { 'postfix':
......
......@@ -5,6 +5,7 @@ describe 'postfix::hash' do
let (:facts) { {
:lsbdistcodename => 'wheezy',
:osfamily => 'Debian',
:path => '/foo/bar',
} }
let :pre_condition do
"class { '::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