aboutsummaryrefslogtreecommitdiff
path: root/manifests/shared-network.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
commit109f35f97718bc607db179533461f2805a60a136 (patch)
tree7ebcbbbda7911c1f60e39c40d7115ab1e8b5696e /manifests/shared-network.pp
parent536a24852925104df8b9becfcac9d17ac999a5f4 (diff)
downloadpuppet-dhcp-109f35f97718bc607db179533461f2805a60a136.tar.gz
puppet-dhcp-109f35f97718bc607db179533461f2805a60a136.tar.bz2
lint + cosmetics
Diffstat (limited to 'manifests/shared-network.pp')
-rw-r--r--manifests/shared-network.pp31
1 files changed, 17 insertions, 14 deletions
diff --git a/manifests/shared-network.pp b/manifests/shared-network.pp
index 2154d37..9a02a5b 100644
--- a/manifests/shared-network.pp
+++ b/manifests/shared-network.pp
@@ -1,22 +1,25 @@
-/*
+# == Definition: dhcp::shared-network
+# Creates a shared-network
+#
+# Arguments:
+# *$subnets* : subnet list to be included in the shared-network
+#
+# Warnings:
+# - subnets must exists
+# - subnets must have $is_shared set to true (default is false)
+#
+define dhcp::shared-network(
+ $ensure = present,
+ $subnets = []
+) {
-== Definition: dhcp::shared-network
-Creates a shared-network
-
-Arguments:
- *$subnets* : subnet list to be included in the shared-network
-
-Warnings:
-- subnets must exists
-- subnets must have $is_shared set to true (default is false)
-
-*/
-define dhcp::shared-network($ensure=present, $subnets=[]) {
include dhcp::params
+
concat::fragment {"shared-${name}":
ensure => $ensure,
target => "${dhcp::params::config_dir}/dhcpd.conf",
- content => template("dhcp/shared-network.erb"),
+ content => template('dhcp/shared-network.erb'),
require => Dhcp::Subnet[$subnets],
}
+
}