Don't require /etc/init.d/snmpd on RHEL.

Updates the snmpd module so that we don't require
/etc/init.d/snmpd to start the snmpd service. This
should fix issues running this module on RHEL.

On Ubuntu we explicitly create /etc/init.d/snmpd
and already has some resource chaining in place so
that it will conditionally run before the snpmd service
starts.

Change-Id: I480c38d26c8b423f5a8d1ddc405749c03aae19b1
Reviewed-on: https://review.openstack.org/23460
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
This commit is contained in:
Dan Prince 2013-03-04 15:34:36 -05:00 committed by Jenkins
parent e1284910fe
commit 338b586393
1 changed files with 1 additions and 4 deletions

View File

@ -11,10 +11,7 @@ class snmpd {
service { 'snmpd':
ensure => running,
hasrestart => true,
require => [
File['/etc/snmp/snmpd.conf'],
File['/etc/init.d/snmpd'],
],
require => File['/etc/snmp/snmpd.conf']
}
if ($::operatingsystem == 'Ubuntu') {