diff options
author | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2011-03-31 12:59:41 +0200 |
---|---|---|
committer | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2011-03-31 12:59:41 +0200 |
commit | 1c0c318f5a5c8412d91dc9668879b8cf79f37261 (patch) | |
tree | 97be1b86d7f26274c6d4653e21a58065b22fa53a | |
parent | 4229d744389a772d5819ba8f90934ad543e80f79 (diff) | |
download | puppet-dhcp-1c0c318f5a5c8412d91dc9668879b8cf79f37261.tar.gz puppet-dhcp-1c0c318f5a5c8412d91dc9668879b8cf79f37261.tar.bz2 |
dhcp::host - added new argument: 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 -%> } |