summaryrefslogtreecommitdiffstats
path: root/modules/smartmontools/manifests/init.pp
blob: e45f15107b0e795ea1fbbdcb4860456418df03b0 (plain) (blame)
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'];
  }
}