From e0f517634bb58ec8e9f396ff489eb8a9efc73ee0 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Mon, 8 Nov 2010 16:15:43 +0100 Subject: (bind) initial import Doc will be added later. --- manifests/definitions/bind-record.pp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 manifests/definitions/bind-record.pp (limited to 'manifests/definitions/bind-record.pp') diff --git a/manifests/definitions/bind-record.pp b/manifests/definitions/bind-record.pp new file mode 100644 index 0000000..5e0cf6f --- /dev/null +++ b/manifests/definitions/bind-record.pp @@ -0,0 +1,14 @@ +define bind::record($ensure=present, + $zone, + $owner, + $host, + $record_type, + $record_class='IN', + $ttl=false) { + + common::concatfilepart {"${zone}.${record_type}.${name}": + ensure => $ensure, + file => "/etc/bind/pri/${zone}.conf", + content => template("bind/default-record.erb"), + } +} -- cgit v1.2.3