From 8a23f6d5b1022d79432734366e131af6f5d3b46f Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Fri, 28 Aug 2009 11:18:51 +0200 Subject: postfix: ensure had no default value in definitions. --- manifests/definitions/virtual.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'manifests/definitions/virtual.pp') diff --git a/manifests/definitions/virtual.pp b/manifests/definitions/virtual.pp index c40e64b..8fcd53a 100644 --- a/manifests/definitions/virtual.pp +++ b/manifests/definitions/virtual.pp @@ -6,7 +6,7 @@ Manages content of the /etc/postfix/virtual map. Parameters: - *name*: name of address postfix will lookup. See virtual(8). - *destination*: where the emails will be delivered to. See virtual(8). -- *ensure*: present/absent +- *ensure*: present/absent, defaults to present. Requires: - Class["postfix"] @@ -33,9 +33,9 @@ Example usage: } */ -define postfix::virtual ($ensure, $destination) { +define postfix::virtual ($ensure="present", $destination) { line {"${name} ${destination}": - ensure => present, + ensure => $ensure, file => "/etc/postfix/virtual", line => "${name} ${destination}", notify => Exec["generate /etc/postfix/virtual.db"], -- cgit v1.2.3