summaryrefslogtreecommitdiff
path: root/manifests/definitions/bind-record.pp
diff options
context:
space:
mode:
authorCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-08 16:15:43 +0100
committerCédric Jeanneret <cedric.jeanneret@camptocamp.com>2010-11-15 14:21:11 +0100
commite0f517634bb58ec8e9f396ff489eb8a9efc73ee0 (patch)
treebe170e0483c52b6bd36a085a957f20ea30975482 /manifests/definitions/bind-record.pp
downloadpuppet-bind-e0f517634bb58ec8e9f396ff489eb8a9efc73ee0.tar.gz
puppet-bind-e0f517634bb58ec8e9f396ff489eb8a9efc73ee0.tar.bz2
(bind) initial import
Doc will be added later.
Diffstat (limited to 'manifests/definitions/bind-record.pp')
-rw-r--r--manifests/definitions/bind-record.pp14
1 files changed, 14 insertions, 0 deletions
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"),
+ }
+}