Commit afc19607 authored by Raphaël Pinson's avatar Raphaël Pinson
Browse files

Merge pull request #99 from tampakrap/package_ensure

add ensure class arguments for the packages
parents 10a5093c 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 {
......
......@@ -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,
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment