summaryrefslogtreecommitdiff
path: root/manifests/definitions/bind-mx.pp
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-29 09:46:46 +0100
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-29 09:46:46 +0100
commitb3e5b6e81fad0181f2d884f35efa875c7b7fa0e1 (patch)
tree14e4de78960081f77ccd127e42eb729543c45ee4 /manifests/definitions/bind-mx.pp
parentf8510094599c2233422a2ba3fa5cf5268c94af84 (diff)
downloadpuppet-bind-b3e5b6e81fad0181f2d884f35efa875c7b7fa0e1.tar.gz
puppet-bind-b3e5b6e81fad0181f2d884f35efa875c7b7fa0e1.tar.bz2
bind - simplification for bind::* definitions.
namevar can be used as "$owner", if $owner is not set.
Diffstat (limited to 'manifests/definitions/bind-mx.pp')
-rw-r--r--manifests/definitions/bind-mx.pp8
1 files changed, 7 insertions, 1 deletions
diff --git a/manifests/definitions/bind-mx.pp b/manifests/definitions/bind-mx.pp
index 5090932..84a2b9f 100644
--- a/manifests/definitions/bind-mx.pp
+++ b/manifests/definitions/bind-mx.pp
@@ -13,11 +13,17 @@ Arguments:
*/
define bind::mx($ensure=present,
$zone,
- $owner,
+ $owner=false,
$priority,
$host,
$ttl=false) {
+ if $owner {
+ $_owner = $owner
+ } else {
+ $_owner = $name
+ }
+
common::concatfilepart{"bind.${name}":
file => "/etc/bind/pri/${zone}",
ensure => $ensure,