system-config/modules/apt/manifests/builddep.pp
Monty Taylor ecab1f6e23 Need proper paths for apt-get build-dep to work.
Change-Id: Ib8211facc9d7cc248b97f3be85179157b2e31112
2011-07-23 15:40:44 -04:00

18 lines
479 B
Puppet

define apt::builddep($ensure = present) {
case $ensure {
present: {
exec { "Install build-deps for $name":
path => "/usr/sbin:/usr/bin:/sbin:/bin",
environment => "HOME=/root",
command => "apt-get -y --force-yes build-dep $name",
user => "root",
group => "root",
logoutput => on_failure,
}
}
default: {
fail "Invalid 'ensure' value '$ensure' for apt::builddep"
}
}
}