X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fbuilddep.pp;h=3294f713391c79d6f07e400c690f15d00c4dc611;hb=fcb90f7b6c716ce0f491fd8b19fb84a3ca253ba8;hp=8891bd903b6095e7bae872904bd3bfb9fe473f82;hpb=cd7a3efdf0d82d47efd711d39284fb690f1a4883;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/builddep.pp b/manifests/builddep.pp index 8891bd9..3294f71 100644 --- a/manifests/builddep.pp +++ b/manifests/builddep.pp @@ -1,16 +1,16 @@ # builddep.pp define apt::builddep() { + include apt::update - Class['apt'] -> Apt::Builddep[$name] - - exec { "apt-update-${name}": - command => '/usr/bin/apt-get update', - refreshonly => true, + exec { "apt-builddep-${name}": + command => "/usr/bin/apt-get -y --force-yes build-dep ${name}", + logoutput => 'on_failure', + notify => Exec['apt_update'], } - exec { "apt-builddep-${name}": - command => "/usr/bin/apt-get -y --force-yes build-dep $name", - notify => Exec["apt-update-${name}"], + # Need anchor to provide containment for dependencies. + anchor { "apt::builddep::${name}": + require => Class['apt::update'], } }