source: trunk/puppet/modules/puppet-dnsmasq/README @ 559

Last change on this file since 559 was 559, checked in by sebas@…, 14 years ago

agregamos el archivo para tener el listado de mac address + hostname + ip, esta usado por el script. +doc

File size: 1.1 KB
RevLine 
[511]1Example
2=======
3
4dnsmasq::config { 'mio':
[513]5        dhcp_authoritative => 'yes',
6        dhcp_range         => '10.11.12.150,10.11.12.200,255.255.255.0,2h',
7        dhcp_gw            => '10.11.12.1',
[535]8        dhcp_nameservers   => '10.11.12.1',
[557]9        dhcp_script        => '/usr/local/sbin/dnsmasq-genhostname.sh',
[559]10        dhcp_hostsfile     => '/etc/dnsmasq.hostsfile',
[535]11        domain             => 'mon.domaine.exemple.com',
[556]12        dhcp_boot          => '/ltsp/i386/pxelinux.0,tftphostname,10.11.12.8',
[535]13        tftp_root          => '/ltsp/i386/',
14        log_queries        => 'yes',
15        log_dhcp           => 'yes'
[511]16}
17
18
[535]19Notes
20========
21 * to desactivate any parameter replace the value by 'absent'
[556]22 * We've a cool script that generate the hostname base on the mac address
23   of the host, requesting a ip. The generate name looks like this
24   PC001d60dec327 This is very useful when installing new hosts with the
25   automated Debian preseed method.
[559]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.
Note: See TracBrowser for help on using the repository browser.