From 65fe9001efdbcc2ab28816bd0ab1298dea610faa Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Wed, 22 Jun 2011 10:52:27 +0200 Subject: dhcp - new definition and related template: shared-network --- manifests/definitions/dhcp-shared-network.pp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 manifests/definitions/dhcp-shared-network.pp (limited to 'manifests/definitions') diff --git a/manifests/definitions/dhcp-shared-network.pp b/manifests/definitions/dhcp-shared-network.pp new file mode 100644 index 0000000..9e1e779 --- /dev/null +++ b/manifests/definitions/dhcp-shared-network.pp @@ -0,0 +1,22 @@ +/* + +== 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 + common::concatfilepart {"shared-${name}": + ensure => $ensure, + file => "${dhcp::params::config_dir}/dhcpd.conf", + content => template("dhcp/shared-network.erb"), + require => Dhcp::Subnet[$subnets], + } +} -- cgit v1.2.3