diff options
author | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-29 09:46:46 +0100 |
---|---|---|
committer | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-29 09:46:46 +0100 |
commit | b3e5b6e81fad0181f2d884f35efa875c7b7fa0e1 (patch) | |
tree | 14e4de78960081f77ccd127e42eb729543c45ee4 /manifests/definitions/bind-mx.pp | |
parent | f8510094599c2233422a2ba3fa5cf5268c94af84 (diff) | |
download | puppet-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.pp | 8 |
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, |