diff options
Diffstat (limited to 'modules/smartmontools/manifests/init.pp')
-rw-r--r-- | modules/smartmontools/manifests/init.pp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/smartmontools/manifests/init.pp b/modules/smartmontools/manifests/init.pp new file mode 100644 index 0000000..76bc09b --- /dev/null +++ b/modules/smartmontools/manifests/init.pp @@ -0,0 +1,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'], + ] + } +} |