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
|
Rev | Line | |
---|
[511] | 1 | class dnsmasq { |
---|
| 2 | package { "dnsmasq": |
---|
| 3 | ensure => installed, |
---|
| 4 | } |
---|
| 5 | } |
---|
| 6 | |
---|
| 7 | define dnsmasq::config ( |
---|
[512] | 8 | $dhcp_authoritative, |
---|
| 9 | $dhcp_range = 'absent', |
---|
| 10 | $dhcp_option = 'absent', |
---|
| 11 | $read_ethers, |
---|
| 12 | $domain = 'absent' |
---|
[511] | 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, |
---|
[512] | 21 | mode => 644, |
---|
[511] | 22 | require => Package["dnsmasq"], |
---|
[512] | 23 | notify => Service["dnsmasq"], |
---|
[511] | 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.