module-puppetlabs-apt/manifests/builddep.pp

17 lines
377 B
ObjectPascal
Raw Normal View History

2011-07-25 00:12:25 +02:00
# builddep.pp
define apt::builddep() {
include apt::update
2011-07-25 00:12:25 +02:00
exec { "apt-builddep-${name}":
command => "/usr/bin/apt-get -y --force-yes build-dep ${name}",
logoutput => 'on_failure',
2014-07-06 05:09:06 +02:00
require => Exec['apt_update'],
2011-07-25 00:12:25 +02:00
}
# Need anchor to provide containment for dependencies.
anchor { "apt::builddep::${name}":
require => Class['apt::update'],
}
2011-07-25 00:12:25 +02:00
}