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