Changeset 512
- Timestamp:
- Jan 19, 2010, 6:35:59 PM (14 years ago)
- Location:
- trunk/puppet/modules/puppet-dnsmasq
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/modules/puppet-dnsmasq/manifests/init.pp
r511 r512 6 6 7 7 define dnsmasq::config ( 8 $dhcp-authoritative, 9 $dhcp-range, 10 $dhcp-option, 11 $read-ethers 8 $dhcp_authoritative, 9 $dhcp_range = 'absent', 10 $dhcp_option = 'absent', 11 $read_ethers, 12 $domain = 'absent' 12 13 ) { 13 14 … … 18 19 owner => root, 19 20 group => root, 20 mode => 755,21 mode => 644, 21 22 require => Package["dnsmasq"], 22 notify => Service[" autossh-tunnel-${name}"],23 notify => Service["dnsmasq"], 23 24 } 24 25 -
trunk/puppet/modules/puppet-dnsmasq/templates/my.dnsmasq.conf.erb
r511 r512 2 2 # dnsmasq dhcpd configuration 3 3 # 4 <% if has_variable?("dhcp -authorative") -%>4 <% if has_variable?("dhcp_authoritative") -%> 5 5 dhcp-authoritative 6 6 <% end -%> 7 7 8 <% if dhcp -range != 'absent' -%>9 dhcp-range=<%= dhcp -range %>8 <% if dhcp_range != 'absent' -%> 9 dhcp-range=<%= dhcp_range %> 10 10 <% end -%> 11 11 12 <% if dhcp -option != 'absent' -%>13 dhcp-option=<%= 3,10.11.12.1%>12 <% if dhcp_option != 'absent' -%> 13 dhcp-option=<%= dhcp_option %> 14 14 <% end -%> 15 15 16 <% if has_variable?("read -ethers") -%>16 <% if has_variable?("read_ethers") -%> 17 17 read-ethers 18 18 <% end -%> 19 20 # 21 # dns configuration 22 # 23 24 # Never forward plain names (without a dot or domain part) 25 domain-needed 26 # Never forward addresses in the non-routed address spaces. 27 bogus-priv 28 29 <% if domain != 'absent' -%> 30 # Set this (and domain: see below) if you want to have a domain 31 # automatically added to simple names in a hosts-file. 32 expand-hosts 33 # Set the domain for dnsmasq. this is optional, but if it is set, it 34 # does the following things. 35 # 1) Allows DHCP hosts to have fully qualified domain names, as long 36 # as the domain part matches this setting. 37 # 2) Sets the "domain" DHCP option thereby potentially setting the 38 # domain of all systems configured by DHCP 39 # 3) Provides the domain part for "expand-hosts" 40 domain=<%= domain %> 41 <% end -%> 42 43 44
Note: See TracChangeset
for help on using the changeset viewer.