]> gitweb.fluxo.info Git - puppet-smartmontools.git/commitdiff
Ensure package is installed before installing "default" file
authorGabriel Filion <lelutin@gmail.com>
Fri, 13 Apr 2012 06:19:05 +0000 (02:19 -0400)
committerGabriel Filion <lelutin@gmail.com>
Fri, 13 Apr 2012 06:19:05 +0000 (02:19 -0400)
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

index 8bafa95caed182222e8d3181712e23900ec9bcfd..d8ce7569faf9a9f33c2a3083e9325dd1556a6fc9 100644 (file)
@@ -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":