Commit 9fea87fe authored by Marc Fournier's avatar Marc Fournier
Browse files

postfix: a couple of fixes required to make augeas stuff work.

parent 6a70cd33
......@@ -4,4 +4,9 @@ class postfix::augeas {
lens_source => 'puppet:///modules/postfix/lenses/postfix_transport.aug',
test_source => 'puppet:///modules/postfix/lenses/test_postfix_transport.aug',
}
augeas::lens {'postfix_virtual':
ensure => present,
lens_source => 'puppet:///modules/postfix/lenses/postfix_virtual.aug',
test_source => 'puppet:///modules/postfix/lenses/test_postfix_virtual.aug',
}
}
......@@ -68,11 +68,10 @@ define postfix::transport (
}
augeas {"Postfix transport - ${name}":
load_path => '/usr/share/augeas/lenses/contrib/',
lens => 'Postfix_Transport.aug',
incl => $file,
changes => $changes,
require => [Package['postfix'], Augeas::Lens['postfix_transport']],
notify => Exec['generate /etc/postfix/transport.db'],
lens => 'Postfix_Transport.lns',
incl => $file,
changes => $changes,
require => [Package['postfix'], Augeas::Lens['postfix_transport']],
notify => Exec['generate /etc/postfix/transport.db'],
}
}
......@@ -58,11 +58,10 @@ define postfix::virtual (
}
augeas {"Postfix virtual - ${name}":
load_path => '/usr/share/augeas/lenses/contrib/',
incl => $file,
lens => 'Postfix_Virtual.aug',
changes => $changes,
require => [Package['postfix'], Augeas::Lens['postfix_transport']],
notify => Exec['generate /etc/postfix/virtual.db'],
incl => $file,
lens => 'Postfix_Virtual.lns',
changes => $changes,
require => [Package['postfix'], Augeas::Lens['postfix_transport']],
notify => Exec['generate /etc/postfix/virtual.db'],
}
}
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