Commit 3f0e2064 authored by Theo Chatzimichos's avatar 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
......@@ -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