Enable snmpd so it works on systemd systems

With systemd systems it appears that ensure => running is insufficient
to make sure the service is running. You also have to enable the service
so that its unit is startable. Since we pretty much always want snmpd
running just enable it.

This behavior was noticed when git.openstack.org was rebuilt on CentOS 7
which uses systemd.

Change-Id: I44f7f73abd5ecf12dad2522a7c48df50b12f7e9b
This commit is contained in:
Clark Boylan 2018-01-05 15:28:13 -08:00
parent f6352648ad
commit d804badd82
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ class snmpd {
}
service { 'snmpd':
ensure => running,
enable => true,
hasrestart => true,
subscribe => File['/etc/snmp/snmpd.conf'],
}