From 109f35f97718bc607db179533461f2805a60a136 Mon Sep 17 00:00:00 2001 From: Mathieu Bornoz Date: Thu, 2 Aug 2012 11:24:52 +0200 Subject: lint + cosmetics --- manifests/shared-network.pp | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) (limited to 'manifests/shared-network.pp') 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], } + } -- cgit v1.2.3