aboutsummaryrefslogtreecommitdiff
path: root/manifests/definitions/transport.pp
diff options
context:
space:
mode:
authorMarc Fournier <marc.fournier@camptocamp.com>2009-08-28 11:18:51 +0200
committerMarc Fournier <marc.fournier@camptocamp.com>2009-08-28 11:18:51 +0200
commit8a23f6d5b1022d79432734366e131af6f5d3b46f (patch)
treef50ec3c8fbd7cb4685a141116b8a109417c55616 /manifests/definitions/transport.pp
parent1c249d42e9d14f756d52044c74f0bc08914cc876 (diff)
downloadpuppet-postfix-8a23f6d5b1022d79432734366e131af6f5d3b46f.tar.gz
puppet-postfix-8a23f6d5b1022d79432734366e131af6f5d3b46f.tar.bz2
postfix: ensure had no default value in definitions.
Diffstat (limited to 'manifests/definitions/transport.pp')
-rw-r--r--manifests/definitions/transport.pp6
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"],