From: Gabriel Filion Date: Fri, 13 Apr 2012 06:19:05 +0000 (-0400) Subject: Ensure package is installed before installing "default" file X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=917274dc6ba44ae114d16da5e1fa1e3701ac0b87;p=puppet-smartmontools.git Ensure package is installed before installing "default" file There's currently no link that forces puppet to install the package before placing the file /etc/default/smartmontools. This leads to errors in the package's install process. --- diff --git a/manifests/init.pp b/manifests/init.pp index 8bafa95..d8ce756 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -48,8 +48,9 @@ class smartmontools { owner => root, group => root, mode => 0644, - notify => Service["smartmontools"], + notify => Service['smartmontools'], source => "puppet://$server/modules/smartmontools/default/smartmontools", + require => Package['smartmontools'], } service { "smartmontools":