aboutsummaryrefslogtreecommitdiff
path: root/manifests/shared-network.pp
diff options
context:
space:
mode:
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],
}
+
}