From d804badd82d65f870218bc17524ec7a62f888486 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 5 Jan 2018 15:28:13 -0800 Subject: [PATCH] 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 --- manifests/init.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/init.pp b/manifests/init.pp index 8cda992..e57f6c9 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -10,6 +10,7 @@ class snmpd { } service { 'snmpd': ensure => running, + enable => true, hasrestart => true, subscribe => File['/etc/snmp/snmpd.conf'], }