summaryrefslogtreecommitdiff
path: root/manifests/record.pp
diff options
context:
space:
mode:
authorMathieu Bornoz <mathieu.bornoz@camptocamp.com>2012-08-02 11:24:52 +0200
committerMathieu Bornoz <mathieu.bornoz@camptocamp.com>2012-08-02 11:24:52 +0200
commitd8f231f802e967bdf5c30bbee61fab05a7621dc6 (patch)
treeb30a9f20b284d5b44ec46140bb48468bfb3674d2 /manifests/record.pp
parente9c9acdd15579bcb10ca9509c032819d3f808e53 (diff)
downloadpuppet-bind-d8f231f802e967bdf5c30bbee61fab05a7621dc6.tar.gz
puppet-bind-d8f231f802e967bdf5c30bbee61fab05a7621dc6.tar.bz2
lint + cosmetics
Diffstat (limited to 'manifests/record.pp')
-rw-r--r--manifests/record.pp47
1 files changed, 24 insertions, 23 deletions
diff --git a/manifests/record.pp b/manifests/record.pp
index ef53833..dc43aaa 100644
--- a/manifests/record.pp
+++ b/manifests/record.pp
@@ -1,24 +1,24 @@
-/*
-
-= Definition: bind::record
-Helper to create any record you want (but NOT MX, please refer to Bind::Mx)
-
-Arguments:
- *$zone*: Bind::Zone name
- *$owner*: owner of the Resource Record
- *$host*: target of the Resource Record
- *$record_type°: resource record type
- *$record_class*: resource record class. Default "IN".
- *$ttl*: Time to Live for the Resource Record. Optional.
-
-*/
-define bind::record($ensure=present,
- $zone,
- $owner=false,
- $host,
- $record_type,
- $record_class='IN',
- $ttl=false) {
+# = Definition: bind::record
+#
+# Helper to create any record you want (but NOT MX, please refer to Bind::Mx)
+#
+# Arguments:
+# *$zone*: Bind::Zone name
+# *$owner*: owner of the Resource Record
+# *$host*: target of the Resource Record
+# *$record_type°: resource record type
+# *$record_class*: resource record class. Default "IN".
+# *$ttl*: Time to Live for the Resource Record. Optional.
+#
+define bind::record (
+ $zone,
+ $host,
+ $record_type,
+ $ensure = present,
+ $owner = false,
+ $record_class = 'IN',
+ $ttl = false
+) {
if $owner {
$_owner = $owner
@@ -29,7 +29,8 @@ define bind::record($ensure=present,
concat::fragment {"${zone}.${record_type}.${name}":
ensure => $ensure,
target => "/etc/bind/pri/${zone}.conf",
- content => template("bind/default-record.erb"),
- notify => Service["bind9"],
+ content => template('bind/default-record.erb'),
+ notify => Service['bind9'],
}
+
}