system-config/modules/snmpd/manifests/init.pp
Monty Taylor a87542db5b snmpd needs its config file to start.
Change-Id: I9fc32a7b06e55948cfb1f3f236dfb22297f3f0f6
2012-02-22 12:31:20 -08:00

17 lines
409 B
Puppet

class snmpd {
package { snmpd: ensure => present }
service { snmpd:
ensure => running,
hasrestart => true,
require => File["/etc/snmp/snmpd.conf"],
}
file { "/etc/snmp/snmpd.conf":
owner => 'root',
group => 'root',
mode => 444,
ensure => 'present',
source => 'puppet:///modules/snmpd/snmpd.conf',
replace => 'true',
}
}