From 917274dc6ba44ae114d16da5e1fa1e3701ac0b87 Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Fri, 13 Apr 2012 02:19:05 -0400 Subject: 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. --- manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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": -- cgit v1.2.3