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
afc19607
Commit
afc19607
authored
Aug 31, 2015
by
Raphaël Pinson
Browse files
Merge pull request #99 from tampakrap/package_ensure
add ensure class arguments for the packages
parents
10a5093c
3f0e2064
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
afc19607
...
...
@@ -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 @
afc19607
...
...
@@ -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