X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=manifests%2Fbuilddep.pp;h=997a2064f85e8c372c387c0c50255c4caffd27ba;hb=a2422f7f7b28d77e721a065458c59e1f7a6498d1;hp=8aebc679aea3329223b293d41fe3654dff91c5ff;hpb=52ca73e964bc5200206efb0f0288acc1e4a6f88c;p=puppet-modules%2Fpuppetlabs-apt.git diff --git a/manifests/builddep.pp b/manifests/builddep.pp index 8aebc67..997a206 100644 --- a/manifests/builddep.pp +++ b/manifests/builddep.pp @@ -1,16 +1,15 @@ # 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}", + 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'], } }