aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-12-15 15:18:16 +0100
committerintrigeri <intrigeri@boum.org>2010-12-15 15:18:16 +0100
commit75cf15b7c722d980d393fb81ffc85cf0b37ef6da (patch)
tree623e40dbcfa1f5a98392f6ea1e6e7f1e565c74c6 /manifests
parenta084ac642c4ee7258356dc108acdcc4bfe614d49 (diff)
downloadpuppet-apt-75cf15b7c722d980d393fb81ffc85cf0b37ef6da.tar.gz
puppet-apt-75cf15b7c722d980d393fb81ffc85cf0b37ef6da.tar.bz2
Fix packages dependency.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/upgrade_package.pp5
1 files changed, 5 insertions, 0 deletions
diff --git a/manifests/upgrade_package.pp b/manifests/upgrade_package.pp
index 1c5cd95..8056286 100644
--- a/manifests/upgrade_package.pp
+++ b/manifests/upgrade_package.pp
@@ -8,6 +8,11 @@ define apt::upgrade_package ($version = "") {
default => "=${version}",
}
+ package { ['apt-show-versions', 'dctrl-tools']:
+ ensure => installed,
+ require => undef,
+ }
+
exec { "aptitude -y install ${name}${version_suffix}":
onlyif => [ "grep-status -F Status installed -a -P $name -q", "apt-show-versions -u $name | grep -q upgradeable" ],
require => [