Add logoutput on_failure for all exec resources.
[puppet-modules/puppetlabs-apt.git] / manifests / builddep.pp
index ce9d8fd6302ac02b4ba75e82539cc3fdfc71d101..3294f713391c79d6f07e400c690f15d00c4dc611 100644 (file)
@@ -3,11 +3,10 @@
 define apt::builddep() {
   include apt::update
 
-  Class['apt'] -> Apt::Builddep[$name]
-
   exec { "apt-builddep-${name}":
-    command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
-    notify  => Exec['apt_update'],
+    command   => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
+    logoutput => 'on_failure',
+    notify    => Exec['apt_update'],
   }
 
   # Need anchor to provide containment for dependencies.