diff options
author | Marc Fournier <marc.fournier@camptocamp.com> | 2009-08-28 11:18:51 +0200 |
---|---|---|
committer | Marc Fournier <marc.fournier@camptocamp.com> | 2009-08-28 11:18:51 +0200 |
commit | 8a23f6d5b1022d79432734366e131af6f5d3b46f (patch) | |
tree | f50ec3c8fbd7cb4685a141116b8a109417c55616 /manifests/definitions | |
parent | 1c249d42e9d14f756d52044c74f0bc08914cc876 (diff) | |
download | puppet-postfix-8a23f6d5b1022d79432734366e131af6f5d3b46f.tar.gz puppet-postfix-8a23f6d5b1022d79432734366e131af6f5d3b46f.tar.bz2 |
postfix: ensure had no default value in definitions.
Diffstat (limited to 'manifests/definitions')
-rw-r--r-- | manifests/definitions/hash.pp | 4 | ||||
-rw-r--r-- | manifests/definitions/transport.pp | 6 | ||||
-rw-r--r-- | manifests/definitions/virtual.pp | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/manifests/definitions/hash.pp b/manifests/definitions/hash.pp index bb4156a..a0514ee 100644 --- a/manifests/definitions/hash.pp +++ b/manifests/definitions/hash.pp @@ -9,7 +9,7 @@ Note: the content of the file is not managed by this definition. Parameters: - *name*: the name of the map file. -- *ensure*: present/absent +- *ensure*: present/absent, defaults to present Requires: - Class["postfix"] @@ -29,7 +29,7 @@ Example usage: } */ -define postfix::hash ($ensure) { +define postfix::hash ($ensure="present") { # selinux labels differ from one distribution to another case $operatingsystem { 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"], 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"], |