From 475c28a91221793a029fb81bfbc66c55fcb427a2 Mon Sep 17 00:00:00 2001 From: Raphaƫl Pinson Date: Tue, 20 Mar 2012 15:38:17 +0100 Subject: Add bind::txt --- manifests/txt.pp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 manifests/txt.pp (limited to 'manifests') diff --git a/manifests/txt.pp b/manifests/txt.pp new file mode 100644 index 0000000..31dd189 --- /dev/null +++ b/manifests/txt.pp @@ -0,0 +1,27 @@ +/* + += Definition: bind::txt +Creates an IPv4 record. + +Arguments: + *$zone*: Bind::Zone name + *$owner*: owner of the Resource Record + *$text*: target of the Resource Record + *$ttl*: Time to Live for the Resource Record. Optional. + +*/ +define bind::txt($ensure=present, + $zone, + $owner=false, + $text, + $ttl=false) { + + bind::record {$name: + ensure => $ensure, + zone => $zone, + owner => $owner, + host => $text, + ttl => $ttl, + record_type => 'TXT', + } +} -- cgit v1.2.3