Last change
on this file since 511 was
511,
checked in by sebas, 14 years ago
|
primeros pasos de modulo puppet-dnsmasq
|
File size:
636 bytes
|
Line | |
---|
1 | class dnsmasq { |
---|
2 | package { "dnsmasq": |
---|
3 | ensure => installed, |
---|
4 | } |
---|
5 | } |
---|
6 | |
---|
7 | define dnsmasq::config ( |
---|
8 | $dhcp-authoritative, |
---|
9 | $dhcp-range, |
---|
10 | $dhcp-option, |
---|
11 | $read-ethers |
---|
12 | ) { |
---|
13 | |
---|
14 | include dnsmasq |
---|
15 | |
---|
16 | file { "/etc/dnsmasq.d/my.dnsmasq.conf": |
---|
17 | content => template("dnsmasq/my.dnsmasq.conf.erb"), |
---|
18 | owner => root, |
---|
19 | group => root, |
---|
20 | mode => 755, |
---|
21 | require => Package["dnsmasq"], |
---|
22 | notify => Service["autossh-tunnel-${name}"], |
---|
23 | } |
---|
24 | |
---|
25 | service { "dnsmasq": |
---|
26 | ensure => running, |
---|
27 | hasrestart => true, |
---|
28 | hasstatus => true, |
---|
29 | require => File["/etc/dnsmasq.d/my.dnsmasq.conf"], |
---|
30 | } |
---|
31 | |
---|
32 | } |
---|
33 | |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.