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
Loading
Loading
Loading
Loading
+1 −0
Changes for manifests/hash.pp: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -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,
+1 −0
Changes for spec/classes/postfix_mta_spec.rb: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ describe 'postfix::mta' do
  let (:facts) { {
    :lsbdistcodename => 'wheezy',
    :osfamily        => 'Debian',
    :path            => '/foo/bar',
  } }
  let :pre_condition do
    "class { 'postfix':
+1 −0
Changes for spec/defines/postfix_hash_spec.rb: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ describe 'postfix::hash' do
  let (:facts) { {
    :lsbdistcodename => 'wheezy',
    :osfamily        => 'Debian',
    :path            => '/foo/bar',
  } }
  let :pre_condition do
    "class { '::postfix': }"