aboutsummaryrefslogtreecommitdiff
path: root/manifests/shared_network.pp
diff options
context:
space:
mode:
authorRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-12 10:53:21 +0200
committerRaphaël Pinson <raphael.pinson@camptocamp.com>2013-04-12 10:53:21 +0200
commite1f00ed6c75724251c3e205a3a50c7a3a4bcb077 (patch)
tree10c81d13608530badc86079f26397ca11fc27ffc /manifests/shared_network.pp
parentf7025518512c0bf8d63f413f7be78347fedee9f4 (diff)
downloadpuppet-dhcp-e1f00ed6c75724251c3e205a3a50c7a3a4bcb077.tar.gz
puppet-dhcp-e1f00ed6c75724251c3e205a3a50c7a3a4bcb077.tar.bz2
Rename shared-network as shared_network
Diffstat (limited to 'manifests/shared_network.pp')
-rw-r--r--manifests/shared_network.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/shared_network.pp b/manifests/shared_network.pp
new file mode 100644
index 0000000..9a02a5b
--- /dev/null
+++ b/manifests/shared_network.pp
@@ -0,0 +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 = []
+) {
+
+ include dhcp::params
+
+ concat::fragment {"shared-${name}":
+ ensure => $ensure,
+ target => "${dhcp::params::config_dir}/dhcpd.conf",
+ content => template('dhcp/shared-network.erb'),
+ require => Dhcp::Subnet[$subnets],
+ }
+
+}