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

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

agregamos un archivo hosts.dnsmasq para fijar la posibilidad de teners algunos nombre de servicios/maquinas que resulven a ip

File size: 1.1 KB
Line 
1Example
2=======
3
4dnsmasq::config { 'mio':
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',
8        dhcp_nameservers   => '10.11.12.1',
9        dhcp_script        => '/usr/local/sbin/dnsmasq-genhostname.sh',
10        dhcp_hostsfile     => '/etc/dnsmasq.hostsfile',
11        addn_hosts         => '/etc/hosts.dnsmasq',
12        domain             => 'mon.domaine.exemple.com',
13        dhcp_boot          => '/ltsp/i386/pxelinux.0,tftphostname,10.11.12.8',
14        tftp_root          => '/ltsp/i386/',
15        log_queries        => 'yes',
16        log_dhcp           => 'yes'
17}
18
19
20Notes
21========
22 * to desactivate any parameter replace the value by 'absent'
23 * We've a cool script that generate the hostname base on the mac address
24   of the host, requesting a ip. The generate name looks like this
25   PC001d60dec327 This is very useful when installing new hosts with the
26   automated Debian preseed method.
27 * To assign static ip, once the mac address of the targeted host has
28   appeared in the /etc/dnsmasq.hostsfile, you can go ahead and change the
29   hostname and add the ip after hostname in this file.
Note: See TracBrowser for help on using the repository browser.