source: trunk/puppet/modules/puppet-dnsmasq/manifests/init.pp @ 512

Last change on this file since 512 was 512, checked in by sebas, 14 years ago

areglo del nombre de las variables + nueva seccion en el template para la resolucion de nombre

File size: 665 bytes
Line 
1class dnsmasq {
2  package { "dnsmasq":
3    ensure => installed,
4  }
5}
6
7define dnsmasq::config (
8  $dhcp_authoritative,
9  $dhcp_range = 'absent',
10  $dhcp_option = 'absent',
11  $read_ethers,
12  $domain = 'absent'
13) {
14
15  include dnsmasq
16 
17    file { "/etc/dnsmasq.d/my.dnsmasq.conf":
18      content => template("dnsmasq/my.dnsmasq.conf.erb"),
19      owner   => root,
20      group   => root,
21      mode    => 644,
22      require => Package["dnsmasq"],
23      notify  => Service["dnsmasq"],
24    }
25   
26    service { "dnsmasq":
27      ensure => running,
28      hasrestart => true,
29      hasstatus => true,
30      require => File["/etc/dnsmasq.d/my.dnsmasq.conf"],
31    }
32
33}
34   
35 
Note: See TracBrowser for help on using the repository browser.