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
1156b6f8
Commit
1156b6f8
authored
Aug 15, 2010
by
Silvio Rhatto
Browse files
Adding source parameter at postfix::hash
parent
eef9c501
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/definitions/hash.pp
View file @
1156b6f8
...
...
@@ -5,11 +5,10 @@ Creates postfix hashed "map" files. It will create "${name}", and then build
"
${name}
.db"
using
the
"postmap"
command
.
The
map
file
can
then
be
referred
to
using
postfix::config
.
Note
:
the
content
of
the
file
is
not
managed
by
this
definition
.
Parameters
:
-
*
name
*
:
the
name
of
the
map
file
.
-
*
ensure
*
:
present
/
absent
,
defaults
to
present
-
*
ensure
*
:
present
/
absent
,
defaults
to
present
.
-
*
source
*
:
file
source
.
Requires
:
-
Class
[
"postfix"
]
...
...
@@ -29,7 +28,7 @@ Example usage:
}
*/
define
postfix::hash
(
$ensure
=
"present"
)
{
define
postfix::hash
(
$ensure
=
"present"
,
$source
=
false
)
{
# selinux labels differ from one distribution to another
case
$operatingsystem
{
...
...
@@ -47,11 +46,24 @@ define postfix::hash ($ensure="present") {
}
}
file
{
"
${name}
"
:
ensure
=>
$ensure
,
mode
=>
600
,
seltype
=>
$postfix_seltype
,
require
=>
Package
[
"postfix"
],
case
$source
{
false
:
{
file
{
"
${name}
"
:
ensure
=>
$ensure
,
mode
=>
600
,
seltype
=>
$postfix_seltype
,
require
=>
Package
[
"postfix"
],
}
}
default
:
{
file
{
"
${name}
"
:
ensure
=>
$ensure
,
mode
=>
600
,
source
=>
$source
,
seltype
=>
$postfix_seltype
,
require
=>
Package
[
"postfix"
],
}
}
}
file
{
"
${name}
.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