diff options
author | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-04 14:02:31 +0100 |
---|---|---|
committer | Cédric Jeanneret <cedric.jeanneret@camptocamp.com> | 2010-11-04 14:02:31 +0100 |
commit | 68b0642c21a598b6f5aecfedd38cc1584737fbec (patch) | |
tree | fdbedfe6246b9bb467fe125097ccaf36abf4c892 /templates/subnet.conf.erb | |
download | puppet-dhcp-68b0642c21a598b6f5aecfedd38cc1584737fbec.tar.gz puppet-dhcp-68b0642c21a598b6f5aecfedd38cc1584737fbec.tar.bz2 |
New module: dhcp
Install and manage a dhcp server with puppet.
Please read manifests/classes/dhcp.pp for more informations about usage.
Diffstat (limited to 'templates/subnet.conf.erb')
-rw-r--r-- | templates/subnet.conf.erb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/subnet.conf.erb b/templates/subnet.conf.erb new file mode 100644 index 0000000..a0a9d29 --- /dev/null +++ b/templates/subnet.conf.erb @@ -0,0 +1,39 @@ +# File managed by puppet + +<% if netmask -%> +subnet <%=name%> netmask <%=netmask%> { +<% else -%> +subnet <%=name%> netmask <%=netmask_eth0%> { +<% end -%> +<% if routeurs -%> + option routers <%=routeurs%>; +<% else -%> + option routers <%=network_eth0%>; +<% end -%> +<% if subnet_mask -%> + option subnet-mask <%=subnet_mask%>; +<% else -%> + option subnet-mask <%=netmask%>; +<% end -%> + option broadcast-address <%=bcast%>; + option domain-name-servers <%=dns%>; +<% if domain_name -%> + option domain-name "<%=domain_name%>"; +<% else -%> + option domain-name "<%=domain%>"; +<% end -%> +<% if netbios_dns -%> + option netbios-name-servers <%=netbios_dns%>; +<% else -%> + option netbios-name-servers <%=network_eth0%>; +<% end -%> +<% if deny -%> + deny <%=deny%>; +<% end -%> +<% if inc -%> + include "<%=to_inc%>"; +<% end -%> +<% if other_opt and not other_opt.empty? -%> +<%= other_opt.collect! {|i| " #{i}" }.join("\n") -%> +<% end %> +} |