1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
class smartmontools { package { 'smartmontools': ensure => installed; } file { '/etc/smartd.conf': source => 'puppet:///modules/smartmontools/smartd.conf'; } service { 'smartd': ensure => running, enable => true, require => Package['smartmontools'], subscribe => File['/etc/smartd.conf']; } }