Changeset 559
- Timestamp:
- Mar 6, 2010, 8:03:14 PM (14 years ago)
- Location:
- trunk/puppet/modules/puppet-dnsmasq
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/modules/puppet-dnsmasq/README
r557 r559 8 8 dhcp_nameservers => '10.11.12.1', 9 9 dhcp_script => '/usr/local/sbin/dnsmasq-genhostname.sh', 10 dhcp_hostsfile => '/etc/dnsmasq.hostsfile', 10 11 domain => 'mon.domaine.exemple.com', 11 12 dhcp_boot => '/ltsp/i386/pxelinux.0,tftphostname,10.11.12.8', … … 23 24 PC001d60dec327 This is very useful when installing new hosts with the 24 25 automated Debian preseed method. 25 26 * To assign static ip, once the mac address of the targeted host has 27 appeared in the /etc/dnsmasq.hostsfile, you can go ahead and change the 28 hostname and add the ip after hostname in this file. -
trunk/puppet/modules/puppet-dnsmasq/manifests/init.pp
r557 r559 11 11 $dhcp_nameservers = 'absent', 12 12 $dhcp_script = 'absent', 13 $dhcp_hostsfile = 'absent', 13 14 $domain = 'absent', 14 15 $dhcp_boot = 'absent', … … 29 30 notify => Service["dnsmasq"]; 30 31 "/etc/dnsmasq.hostsfile": 31 ensure => exists,32 ensure => present, 32 33 owner => root, 33 34 group => root, 34 mode => 755,35 mode => 644, 35 36 require => Package["dnsmasq"]; 36 37 "/usr/local/sbin/dnsmasq-genhostname.sh": 37 source => "puppet:///dnsmasq/dnsmasq-genhostname.sh" 38 source => "puppet:///dnsmasq/dnsmasq-genhostname.sh", 38 39 owner => root, 39 40 group => root, -
trunk/puppet/modules/puppet-dnsmasq/templates/my.dnsmasq.conf.erb
r557 r559 37 37 # if there is one. 38 38 dhcp-script=<%= dhcp_script %> 39 <% end -%> 40 41 <% if dhcp_hostsfile != 'absent' -%> 42 # This file is puppet here by puppet and the above script is filling 43 # it with the mac address,<generatedhostname>. This same file is 44 # also used to assign the static ip and hostname to a specific mac 45 # address. Take care editing this file. 46 dhcp_hostsfile=<%= dhcp_hostsfile %> 39 47 <% end -%> 40 48
Note: See TracChangeset
for help on using the changeset viewer.