diff options
Diffstat (limited to 'manifests/definitions/transport.pp')
-rw-r--r-- | manifests/definitions/transport.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/definitions/transport.pp b/manifests/definitions/transport.pp index cf44faf..5ca5554 100644 --- a/manifests/definitions/transport.pp +++ b/manifests/definitions/transport.pp @@ -6,7 +6,7 @@ Manages content of the /etc/postfix/transport map. Parameters: - *name*: name of address postfix will lookup. See transport(5). - *destination*: where the emails will be delivered to. See transport(5). -- *ensure*: present/absent +- *ensure*: present/absent, defaults to present. Requires: - Class["postfix"] @@ -33,9 +33,9 @@ Example usage: } */ -define postfix::transport ($ensure, $destination) { +define postfix::transport ($ensure="present", $destination) { line {"${name} ${destination}": - ensure => present, + ensure => $ensure, file => "/etc/postfix/transport", line => "${name} ${destination}", notify => Exec["generate /etc/postfix/transport.db"], |