Commit 6a70cd33 authored by Marc Fournier's avatar Marc Fournier
Browse files

augeas: use incl/lens to make loading faster.

parent aba3d985
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
define postfix::config ($value, $ensure = present) { define postfix::config ($value, $ensure = present) {
Augeas { Augeas {
context => '/files/etc/postfix/main.cf', incl => '/etc/postfix/main.cf',
lens => 'Postfix_Main.lns',
notify => Service['postfix'], notify => Service['postfix'],
require => File['/etc/postfix/main.cf'], require => File['/etc/postfix/main.cf'],
} }
......
...@@ -69,7 +69,8 @@ define postfix::transport ( ...@@ -69,7 +69,8 @@ define postfix::transport (
augeas {"Postfix transport - ${name}": augeas {"Postfix transport - ${name}":
load_path => '/usr/share/augeas/lenses/contrib/', load_path => '/usr/share/augeas/lenses/contrib/',
context => "/files${file}", lens => 'Postfix_Transport.aug',
incl => $file,
changes => $changes, changes => $changes,
require => [Package['postfix'], Augeas::Lens['postfix_transport']], require => [Package['postfix'], Augeas::Lens['postfix_transport']],
notify => Exec['generate /etc/postfix/transport.db'], notify => Exec['generate /etc/postfix/transport.db'],
......
...@@ -59,7 +59,8 @@ define postfix::virtual ( ...@@ -59,7 +59,8 @@ define postfix::virtual (
augeas {"Postfix virtual - ${name}": augeas {"Postfix virtual - ${name}":
load_path => '/usr/share/augeas/lenses/contrib/', load_path => '/usr/share/augeas/lenses/contrib/',
context => "/files${file}", incl => $file,
lens => 'Postfix_Virtual.aug',
changes => $changes, changes => $changes,
require => [Package['postfix'], Augeas::Lens['postfix_transport']], require => [Package['postfix'], Augeas::Lens['postfix_transport']],
notify => Exec['generate /etc/postfix/virtual.db'], 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