summaryrefslogtreecommitdiff
path: root/manifests/mx.pp
diff options
context:
space:
mode:
authorMathieu Bornoz <mathieu.bornoz@camptocamp.com>2012-08-02 09:30:21 +0200
committerMathieu Bornoz <mathieu.bornoz@camptocamp.com>2012-08-02 09:30:21 +0200
commite9c9acdd15579bcb10ca9509c032819d3f808e53 (patch)
tree984d786ae04c0318b06d28c22bf05bb4f11b5257 /manifests/mx.pp
parentfb0938204019fd14b030605ca8047f1c623bc38c (diff)
downloadpuppet-bind-e9c9acdd15579bcb10ca9509c032819d3f808e53.tar.gz
puppet-bind-e9c9acdd15579bcb10ca9509c032819d3f808e53.tar.bz2
switch from common::concatfilepart to concat[1]
[1] https://github.com/camptocamp/puppet-concat
Diffstat (limited to 'manifests/mx.pp')
-rw-r--r--manifests/mx.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/mx.pp b/manifests/mx.pp
index 84a2b9f..433c8ea 100644
--- a/manifests/mx.pp
+++ b/manifests/mx.pp
@@ -24,11 +24,11 @@ define bind::mx($ensure=present,
$_owner = $name
}
- common::concatfilepart{"bind.${name}":
- file => "/etc/bind/pri/${zone}",
+ concat::fragment {"bind.${name}":
ensure => $ensure,
- notify => Service["bind9"],
+ target => "/etc/bind/pri/${zone}.conf",
content => template("bind/mx-record.erb"),
+ notify => Service["bind9"],
require => [Bind::Zone[$zone], Bind::A[$host]],
}
}