summaryrefslogtreecommitdiff
path: root/manifests/definitions/bind-mx.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/definitions/bind-mx.pp')
-rw-r--r--manifests/definitions/bind-mx.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/definitions/bind-mx.pp b/manifests/definitions/bind-mx.pp
new file mode 100644
index 0000000..7eb63d0
--- /dev/null
+++ b/manifests/definitions/bind-mx.pp
@@ -0,0 +1,16 @@
+define bind::mx($ensure=present,
+ $zone,
+ $owner,
+ $priority,
+ $host,
+ $ttl=false) {
+
+ common::concatfilepart{"bind.${name}":
+ file => "/etc/bind/pri/${zone}",
+ ensure => $ensure,
+ notify => Service["bind9"],
+ content => template("bind/mx-record.erb"),
+ require => Bind::Zone[$zone],
+ }
+}
+