summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/sources_list.pp2
-rw-r--r--manifests/upgrade_package.pp2
2 files changed, 2 insertions, 2 deletions
diff --git a/manifests/sources_list.pp b/manifests/sources_list.pp
index ff8f21a..86b35a7 100644
--- a/manifests/sources_list.pp
+++ b/manifests/sources_list.pp
@@ -13,7 +13,7 @@ define apt::sources_list (
file { "/etc/apt/sources.list.d/${name}":
ensure => $ensure,
- owner => root, group => 0, mode => 0600;
+ owner => root, group => 0, mode => 0644;
}
if $source {
diff --git a/manifests/upgrade_package.pp b/manifests/upgrade_package.pp
index 358bd9e..9202624 100644
--- a/manifests/upgrade_package.pp
+++ b/manifests/upgrade_package.pp
@@ -22,7 +22,7 @@ define apt::upgrade_package ($version = "") {
}
}
- exec { "aptitude -y install ${name}${version_suffix}":
+ exec { "apt-get -q -y -o 'DPkg::Options::=--force-confold' install ${name}${version_suffix}":
onlyif => [ "grep-status -F Status installed -a -P $name -q", "apt-show-versions -u $name | grep -q upgradeable" ],
require => [
Exec['apt_updated'],