summaryrefslogtreecommitdiffstats
path: root/modules/smartmontools
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-30 01:19:00 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-30 01:19:00 -0500
commit8a7d39c3e63ba7e81a8eb2276b2e16b489fb08cc (patch)
tree83e7c050595c9adc267b5db759e9b048f71224aa /modules/smartmontools
parent899e1742926e1d43da69254fbb2f3747dc47408d (diff)
downloadpuppet-tozt-8a7d39c3e63ba7e81a8eb2276b2e16b489fb08cc.tar.gz
puppet-tozt-8a7d39c3e63ba7e81a8eb2276b2e16b489fb08cc.zip
restart smartd when smartd.conf is updated
Diffstat (limited to 'modules/smartmontools')
-rw-r--r--modules/smartmontools/manifests/init.pp6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/smartmontools/manifests/init.pp b/modules/smartmontools/manifests/init.pp
index b79c1a2..e45f151 100644
--- a/modules/smartmontools/manifests/init.pp
+++ b/modules/smartmontools/manifests/init.pp
@@ -10,9 +10,7 @@ class smartmontools {
service { 'smartd':
ensure => running,
enable => true,
- require => [
- Package['smartmontools'],
- File['/etc/smartd.conf'],
- ]
+ require => Package['smartmontools'],
+ subscribe => File['/etc/smartd.conf'];
}
}