f40847dd78
Killed trailing whitespace in the puppet repo files using `sed -r 's/\s+$//'`. Skip binary files and html templates for lodgeit and mailman. Change-Id: Ib43493161d8f0e8fae1426b22fb1737832ca14cd Reviewed-on: https://review.openstack.org/12969 Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
31 lines
924 B
Puppet
31 lines
924 B
Puppet
class snmpd {
|
|
package { snmpd: ensure => present }
|
|
service { snmpd:
|
|
ensure => running,
|
|
hasrestart => true,
|
|
require => [File["/etc/snmp/snmpd.conf"],
|
|
File["/etc/init.d/snmpd"]]
|
|
}
|
|
# This file is only needed on machines pre-precise. There is a bug in
|
|
# the previous init script versions which causes them to attempt
|
|
# snmptrapd even if it's configured not to run, and then to report
|
|
# failure.
|
|
file { "/etc/init.d/snmpd":
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 755,
|
|
ensure => 'present',
|
|
source => 'puppet:///modules/snmpd/snmpd.init',
|
|
replace => 'true',
|
|
require => Package[snmpd]
|
|
}
|
|
file { "/etc/snmp/snmpd.conf":
|
|
owner => 'root',
|
|
group => 'root',
|
|
mode => 444,
|
|
ensure => 'present',
|
|
source => 'puppet:///modules/snmpd/snmpd.conf',
|
|
replace => 'true',
|
|
}
|
|
}
|