ecab1f6e23
Change-Id: Ib8211facc9d7cc248b97f3be85179157b2e31112
18 lines
479 B
Puppet
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"
|
|
}
|
|
}
|
|
}
|