Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
6a70cd33
Commit
6a70cd33
authored
Oct 16, 2012
by
Marc Fournier
Browse files
augeas: use incl/lens to make loading faster.
parent
aba3d985
Changes
3
Hide whitespace changes
Inline
Side-by-side
manifests/config.pp
View file @
6a70cd33
...
...
@@ -30,7 +30,8 @@
define
postfix::config
(
$value
,
$ensure
=
present
)
{
Augeas
{
context
=>
'/files/etc/postfix/main.cf'
,
incl
=>
'/etc/postfix/main.cf'
,
lens
=>
'Postfix_Main.lns'
,
notify
=>
Service
[
'postfix'
],
require
=>
File
[
'/etc/postfix/main.cf'
],
}
...
...
manifests/transport.pp
View file @
6a70cd33
...
...
@@ -69,7 +69,8 @@ define postfix::transport (
augeas
{
"Postfix transport -
${name}
"
:
load_path
=>
'/usr/share/augeas/lenses/contrib/'
,
context
=>
"/files
${file}
"
,
lens
=>
'Postfix_Transport.aug'
,
incl
=>
$file
,
changes
=>
$changes
,
require
=>
[
Package
[
'postfix'
],
Augeas
::
Lens
[
'postfix_transport'
]],
notify
=>
Exec
[
'generate /etc/postfix/transport.db'
],
...
...
manifests/virtual.pp
View file @
6a70cd33
...
...
@@ -59,7 +59,8 @@ define postfix::virtual (
augeas
{
"Postfix virtual -
${name}
"
:
load_path
=>
'/usr/share/augeas/lenses/contrib/'
,
context
=>
"/files
${file}
"
,
incl
=>
$file
,
lens
=>
'Postfix_Virtual.aug'
,
changes
=>
$changes
,
require
=>
[
Package
[
'postfix'
],
Augeas
::
Lens
[
'postfix_transport'
]],
notify
=>
Exec
[
'generate /etc/postfix/virtual.db'
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment