]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
postfix: ensure had no default value in definitions.
authorMarc Fournier <marc.fournier@camptocamp.com>
Fri, 28 Aug 2009 09:18:51 +0000 (11:18 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Fri, 28 Aug 2009 09:18:51 +0000 (11:18 +0200)
manifests/definitions/hash.pp
manifests/definitions/transport.pp
manifests/definitions/virtual.pp

index bb4156aba6c363953cf8bfcccb9d87e226a063f8..a0514eed7e2184643127db03ed13faab55c18b6f 100644 (file)
@@ -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 {
index cf44faf472f09da65b7883dae5b3f9c18cf5cc90..5ca5554c96c05879d432f7c8769fa8809ffe5b52 100644 (file)
@@ -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"],
index c40e64bd70377a67e00e27ad20b4cdf480a4b4c4..8fcd53a63babb0d80cd2939c07d423f0c5433366 100644 (file)
@@ -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"],