Changeset 557 for trunk/puppet/modules/puppet-dnsmasq/manifests/init.pp
- Timestamp:
- Mar 6, 2010, 7:04:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/puppet/modules/puppet-dnsmasq/manifests/init.pp
r537 r557 10 10 $dhcp_gw = 'absent', 11 11 $dhcp_nameservers = 'absent', 12 $ read_ethers= 'absent',12 $dhcp_script = 'absent', 13 13 $domain = 'absent', 14 14 $dhcp_boot = 'absent', … … 20 20 include dnsmasq 21 21 22 file { "/etc/dnsmasq.d/my.dnsmasq.conf": 23 content => template("dnsmasq/my.dnsmasq.conf.erb"), 24 owner => root, 25 group => root, 26 mode => 644, 27 require => Package["dnsmasq"], 28 notify => Service["dnsmasq"], 29 } 22 file { 23 "/etc/dnsmasq.d/my.dnsmasq.conf": 24 content => template("dnsmasq/my.dnsmasq.conf.erb"), 25 owner => root, 26 group => root, 27 mode => 644, 28 require => Package["dnsmasq"], 29 notify => Service["dnsmasq"]; 30 "/etc/dnsmasq.hostsfile": 31 ensure => exists, 32 owner => root, 33 group => root, 34 mode => 755, 35 require => Package["dnsmasq"]; 36 "/usr/local/sbin/dnsmasq-genhostname.sh": 37 source => "puppet:///dnsmasq/dnsmasq-genhostname.sh" 38 owner => root, 39 group => root, 40 mode => 755, 41 require => File["/etc/dnsmasq.hostsfile"]; 42 } 30 43 31 44 service { "dnsmasq": 32 ensure => running,33 hasrestart => true,34 hasstatus => true,35 require => File["/etc/dnsmasq.d/my.dnsmasq.conf"],45 ensure => running, 46 hasrestart => true, 47 hasstatus => true, 48 require => File["/etc/dnsmasq.d/my.dnsmasq.conf"], 36 49 } 37 50
Note: See TracChangeset
for help on using the changeset viewer.