aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorCedric Jeanneret <cedric.jeanneret@camptocamp.com>2013-02-26 14:29:55 +0100
committerCedric Jeanneret <cedric.jeanneret@camptocamp.com>2013-02-26 14:29:55 +0100
commitec52b52f8227e10a3724c21dde337a424bdcfe27 (patch)
treed897d6ab4dd59c94ed40dc3333006a115700ca49 /templates
parent3fbb21df04f007d76f5c816e0ba7a3bd09fade54 (diff)
downloadpuppet-dhcp-ec52b52f8227e10a3724c21dde337a424bdcfe27.tar.gz
puppet-dhcp-ec52b52f8227e10a3724c21dde337a424bdcfe27.tar.bz2
updated and corrected template and dhcp::hosts
Diffstat (limited to 'templates')
-rw-r--r--templates/host.conf.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/host.conf.erb b/templates/host.conf.erb
index c3514d3..e6a7073 100644
--- a/templates/host.conf.erb
+++ b/templates/host.conf.erb
@@ -3,12 +3,14 @@
host <%= host %>-<%= if_name %> {
hardware ethernet <%= if_mac %>;
<% if datas.fetch('fixed_address', false) -%>
- fixed-address <%= datas.fetch('fixed_address') %>
+ fixed-address <%= datas.fetch('fixed_address') %>;
<% else -%>
- fixed-address <%= host %>
+ fixed-address <%= host %>;
<% end -%>
<% if datas.fetch('option', false) -%>
<%= datas.fetch('option') %>
+<% elsif @global_options -%>
+ <%= @global_options %>
<% end -%>
}
<% end -%>