Without puppetlabs/stdlib, you will get "err: Could not retrieve catalog from remote...
[puppet-modules/puppetlabs-apt.git] / manifests / builddep.pp
1 # builddep.pp
2
3 define apt::builddep() {
4   include apt::update
5
6   exec { "apt-builddep-${name}":
7     command   => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
8     logoutput => 'on_failure',
9     notify    => Exec['apt_update'],
10   }
11
12   # Need anchor to provide containment for dependencies.
13   anchor { "apt::builddep::${name}":
14     require => Class['apt::update'],
15   }
16 }