From: Raphaƫl Pinson Date: Tue, 20 Mar 2012 14:38:17 +0000 (+0100) Subject: Add bind::txt X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=475c28a91221793a029fb81bfbc66c55fcb427a2;p=puppet-bind.git Add bind::txt --- 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', + } +}