Abs paths for all commands

This commit is contained in:
Ben Godfrey 2011-03-11 17:02:50 +00:00 committed by Ben Godfrey
parent 627718fd34
commit 71fc425176
6 changed files with 20 additions and 20 deletions

View file

@ -6,10 +6,10 @@ define apt::force(
$version = false
) {
exec { "aptitude -y -t ${release} install ${name}":
exec { "/usr/bin/aptitude -y -t ${release} install ${name}":
unless => $version ? {
false => "dpkg -l | grep ${name}",
default => "dpkg -l | grep ${name} | grep ${version}"
false => "/usr/bin/dpkg -l | grep ${name}",
default => "/usr/bin/dpkg -l | grep ${name} | grep ${version}"
}
}

View file

@ -2,7 +2,7 @@
class apt {
$root = '/etc/apt'
$provider = 'apt-get'
$provider = '/usr/bin/apt-get'
file { "sources.list":
name => "${root}/sources.list",

View file

@ -41,8 +41,8 @@ define apt::source(
}
if $key != false {
exec { "apt-key adv --keyserver ${key_server} --recv-keys ${key}":
unless => "apt-key list | grep ${key}",
exec { "/usr/bin/apt-key adv --keyserver ${key_server} --recv-keys ${key}":
unless => "/usr/bin/apt-key list | grep ${key}",
before => File["${name}.list"],
}
}