diff options
author | Mathieu Bornoz <mathieu.bornoz@camptocamp.com> | 2012-08-02 11:24:52 +0200 |
---|---|---|
committer | Mathieu Bornoz <mathieu.bornoz@camptocamp.com> | 2012-08-02 11:24:52 +0200 |
commit | d8f231f802e967bdf5c30bbee61fab05a7621dc6 (patch) | |
tree | b30a9f20b284d5b44ec46140bb48468bfb3674d2 /manifests/mx.pp | |
parent | e9c9acdd15579bcb10ca9509c032819d3f808e53 (diff) | |
download | puppet-bind-d8f231f802e967bdf5c30bbee61fab05a7621dc6.tar.gz puppet-bind-d8f231f802e967bdf5c30bbee61fab05a7621dc6.tar.bz2 |
lint + cosmetics
Diffstat (limited to 'manifests/mx.pp')
-rw-r--r-- | manifests/mx.pp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/manifests/mx.pp b/manifests/mx.pp index 433c8ea..4404a83 100644 --- a/manifests/mx.pp +++ b/manifests/mx.pp @@ -1,22 +1,21 @@ -/* - -= Definition: bind::mx -Creates an MX record. - -Arguments: - *$zone*: Bind::Zone name - *$owner*: owner of the Resource Record - *$priority*: MX record priority - *$host*: target of the Resource Record - *$ttl*: Time to Live for the Resource Record. Optional. - -*/ -define bind::mx($ensure=present, - $zone, - $owner=false, - $priority, - $host, - $ttl=false) { +# = Definition: bind::mx +# Creates an MX record. +# +# Arguments: +# *$zone*: Bind::Zone name +# *$owner*: owner of the Resource Record +# *$priority*: MX record priority +# *$host*: target of the Resource Record +# *$ttl*: Time to Live for the Resource Record. Optional. +# +define bind::mx ( + $zone, + $host, + $priority, + $ensure = present, + $owner = false, + $ttl = false +) { if $owner { $_owner = $owner @@ -27,9 +26,10 @@ define bind::mx($ensure=present, concat::fragment {"bind.${name}": ensure => $ensure, target => "/etc/bind/pri/${zone}.conf", - content => template("bind/mx-record.erb"), - notify => Service["bind9"], + content => template('bind/mx-record.erb'), + notify => Service['bind9'], require => [Bind::Zone[$zone], Bind::A[$host]], } + } |