diff options
-rw-r--r-- | manifests/definitions/dhcp-host.pp | 2 | ||||
-rw-r--r-- | templates/host.conf.erb | 3 |
2 files changed, 4 insertions, 1 deletions
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 -%> } |