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 ( ...@@ -66,6 +66,7 @@ define postfix::hash (
exec {"generate ${name}.db": exec {"generate ${name}.db":
command => "postmap ${name}", command => "postmap ${name}",
path => $::path,
#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,
......
...@@ -4,6 +4,7 @@ describe 'postfix::mta' do ...@@ -4,6 +4,7 @@ describe 'postfix::mta' do
let (:facts) { { let (:facts) { {
:lsbdistcodename => 'wheezy', :lsbdistcodename => 'wheezy',
:osfamily => 'Debian', :osfamily => 'Debian',
:path => '/foo/bar',
} } } }
let :pre_condition do let :pre_condition do
"class { 'postfix': "class { 'postfix':
......
...@@ -5,6 +5,7 @@ describe 'postfix::hash' do ...@@ -5,6 +5,7 @@ describe 'postfix::hash' do
let (:facts) { { let (:facts) { {
:lsbdistcodename => 'wheezy', :lsbdistcodename => 'wheezy',
:osfamily => 'Debian', :osfamily => 'Debian',
:path => '/foo/bar',
} } } }
let :pre_condition do let :pre_condition do
"class { '::postfix': }" "class { '::postfix': }"
......
Supports Markdown
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