From 1c0c318f5a5c8412d91dc9668879b8cf79f37261 Mon Sep 17 00:00:00 2001 From: Cédric Jeanneret Date: Thu, 31 Mar 2011 12:59:41 +0200 Subject: dhcp::host - added new argument: options --- manifests/definitions/dhcp-host.pp | 2 +- templates/host.conf.erb | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/definitions/dhcp-host.pp b/manifests/definitions/dhcp-host.pp index e612fb5..160df63 100644 --- a/manifests/definitions/dhcp-host.pp +++ b/manifests/definitions/dhcp-host.pp @@ -9,7 +9,7 @@ Arguments: *$fixed_address*: host fixed address (if not set, takes $name) */ -define dhcp::host($ensure=present,$mac,$subnet,$fixed_address=false) { +define dhcp::host($ensure=present,$mac,$subnet,$fixed_address=false, $options=false) { include dhcp::params common::concatfilepart {"dhcp.host.$name": ensure => $ensure, diff --git a/templates/host.conf.erb b/templates/host.conf.erb index 2cdb4af..20ba6e6 100644 --- a/templates/host.conf.erb +++ b/templates/host.conf.erb @@ -5,4 +5,7 @@ host <%=name%> { <% else -%> fixed-address <%=name%>; <% end -%> +<% if options -%> + <%=options%> +<% end -%> } -- cgit v1.2.3