Skip to content
GitLab
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
df23eac8
Commit
df23eac8
authored
Aug 05, 2013
by
Raphaël Pinson
Browse files
Fix dependencies
parent
8ecb004c
Changes
3
Hide whitespace changes
Inline
Side-by-side
manifests/config.pp
View file @
df23eac8
...
...
@@ -30,6 +30,10 @@ define postfix::config ($value, $ensure = present) {
validate_re
(
$ensure
,
[
'present'
,
'absent'
],
"
\$
ensure must be either 'present' or 'absent', got '
${ensure}
'"
)
if
(
!
defined
(
Class
[
'postfix'
]))
{
fail
'You must define class postfix before using postfix::config!'
}
Augeas
{
incl
=>
'/etc/postfix/main.cf'
,
lens
=>
'Postfix_Main.lns'
,
...
...
manifests/hash.pp
View file @
df23eac8
...
...
@@ -37,6 +37,10 @@ define postfix::hash (
validate_re
(
$ensure
,
[
'present'
,
'absent'
],
"
\$
ensure must be either 'present' or 'absent', got '
${ensure}
'"
)
if
(
!
defined
(
Class
[
'postfix'
]))
{
fail
'You must define class postfix before using postfix::config!'
}
if
$source
and
$content
{
fail
'You must provide either \'source\' or \'content\', not both'
}
...
...
@@ -65,6 +69,5 @@ define postfix::hash (
#creates => "${name}.db", # this prevents postmap from being run !
subscribe
=>
File
[
$name
],
refreshonly
=>
true
,
require
=>
Package
[
'postfix'
],
}
}
manifests/init.pp
View file @
df23eac8
...
...
@@ -158,7 +158,6 @@ class postfix (
}
# Relationships
Class
[
'postfix'
]
->
Postfix
::
Config
<|
|>
Class
[
'postfix'
]
->
Postfix
::
Transport
<|
|>
Class
[
'postfix'
]
->
Postfix
::
Virtual
<|
|>
Postfix
::
Config
<|
|>
~>
Class
[
'postfix::service'
]
Class
[
'postfix'
]
->
Postfix
::
Hash
<|
|>
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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