Displaying 2 results from an estimated 2 matches for "lan_subnet_range".
2007 Dec 13
4
access to databases in puppet - best practice?
...%>/
user=dnsmasq
<% unless bind_lan_interfaces_only_real == "no" -%>
<% lan_interfaces.each do |interface| -%>
interface=<%= interface %>
<% end -%>
<% end -%>
addn-hosts=/etc/hosts.dnsmasq
expand-hosts
domain=<%= lan_dns_domain %>
dhcp-range=<%= lan_subnet_range[0] %>,<%= lan_subnet_range[1] %>,1h
<% devs.get_dhcp_static_hosts.each do |host| -%>
dhcp-host=<%= host[''ip''] %>,<%= host[''mac''] %>
<% end -%>
dhcp-authoritative
So, what do you think?
---
Grzegorz MarszaĆek
graf0@post.pl
2007 Dec 06
1
order, managing one file and refreshonly
...ed. I know there are "before" and "require" directives - but
how to use them on whole modules? And that''s not always good think -
to hardcode order into modules... Any ideas?
- second are variables. For each network I define a lot of them. Ie.:
$lan_subnet_ip, or $lan_subnet_range etc. I use them in modules ie.
to generate dhpcd.conf file. But I can use them only after I defined
them - ie. I cannot use those variables in puppet module, because
puppet gives me "Could not find value for ''variable''" error. I''m
doing something wrong,...