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
3f0e2064
Commit
3f0e2064
authored
Jun 25, 2015
by
Theo Chatzimichos
Browse files
add ensure class arguments for the packages
so that we can be able to define specific package versions (or latest)
parent
5805d227
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
3f0e2064
...
...
@@ -59,6 +59,10 @@
#
#
[*
use_sympa
*]
-
(
boolean
)
Whether
to
setup
for
Sympa
#
#
[*
postfix_ensure
*]
-
(
string
)
The
ensure
value
of
the
postfix
package
#
#
[*
mailx_ensure
*]
-
(
string
)
The
ensure
value
of
the
mailx
package
#
#
===
Examples
#
#
class
{ 'postfix':
...
...
@@ -92,6 +96,8 @@ class postfix (
$
use_dovecot_lda
=
false
,
#
postfix_use_dovecot_lda
$
use_schleuder
=
false
,
#
postfix_use_schleuder
$
use_sympa
=
false
,
#
postfix_use_sympa
$
postfix_ensure
=
'present'
,
$
mailx_ensure
=
'present'
,
)
inherits
postfix
::
params
{
...
...
manifests/packages.pp
View file @
3f0e2064
...
...
@@ -2,11 +2,11 @@ class postfix::packages {
include
::postfix::params
package
{
'postfix'
:
ensure
=>
installed
,
ensure
=>
$postfix::postfix_ensure
,
}
package
{
'mailx'
:
ensure
=>
installed
,
ensure
=>
$postfix::mailx_ensure
,
name
=>
$postfix::params::mailx_package
,
}
}
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