Changeset 561 for trunk/puppet


Ignore:
Timestamp:
Mar 6, 2010, 9:04:10 PM (14 years ago)
Author:
sebas@…
Message:

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

Location:
trunk/puppet/modules/puppet-dnsmasq
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/puppet/modules/puppet-dnsmasq/README

    r559 r561  
    99        dhcp_script        => '/usr/local/sbin/dnsmasq-genhostname.sh',
    1010        dhcp_hostsfile     => '/etc/dnsmasq.hostsfile',
     11        addn_hosts         => '/etc/hosts.dnsmasq',
    1112        domain             => 'mon.domaine.exemple.com',
    1213        dhcp_boot          => '/ltsp/i386/pxelinux.0,tftphostname,10.11.12.8',
  • trunk/puppet/modules/puppet-dnsmasq/manifests/init.pp

    r559 r561  
    1212    $dhcp_script        = 'absent',
    1313    $dhcp_hostsfile     = 'absent',
     14    $addn_hosts         = 'absent',
    1415    $domain             = 'absent',
    1516    $dhcp_boot          = 'absent',
     
    4142           mode    => 755,
    4243           require => File["/etc/dnsmasq.hostsfile"];
     44       "/etc/hosts.dnsmasq":
     45           ensure  => present,
     46           owner   => root,
     47           group   => root,
     48           mode    => 644,
     49           require => Package["dnsmasq"];
    4350     }
    4451   
  • trunk/puppet/modules/puppet-dnsmasq/templates/my.dnsmasq.conf.erb

    r560 r561  
    5656bogus-priv
    5757
     58<% if addn_hosts != 'absent' -%>
     59# We want to read another file, as well as /etc/hosts,
     60# so use this.
     61addn-hosts=<%= addn_hosts %>
     62<% end -%>
     63
    5864<% if domain != 'absent' -%>
    5965# Set this (and domain: see below) if you want to have a domain
Note: See TracChangeset for help on using the changeset viewer.