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