summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-02-26 13:07:37 +0100
committervarac <varacanero@zeromail.org>2016-02-26 13:07:37 +0100
commit33c61e8df59db1abbed379a9e9790946060a8f1e (patch)
tree1ba5e08c285dbf2b60e7be2f59934e6abd5f866c
parentd997142b0cb55b23ed85ee32bbbb72d4456465d1 (diff)
parent8c8bd7bb1e5cc0f5297db9629ece783452233d1f (diff)
Merge remote-tracking branch 'shared/master' into leap_master
-rw-r--r--README21
-rw-r--r--manifests/init.pp1
-rw-r--r--manifests/unattended_upgrades.pp10
3 files changed, 23 insertions, 9 deletions
diff --git a/README b/README
index e443fae..00db7d8 100644
--- a/README
+++ b/README
@@ -37,13 +37,13 @@ Ubuntu support is lagging behind but not absent either.
* the apt class has been moved to a paramterized class. if you were including
this class before, after passing some variables, you will need to move to
- instantiating the class with those variables instead. For example, if you
+ instantiating the class with those variables instead. For example, if you
had the following in your manifests:
$apt_debian_url = 'http://localhost:9999/debian/'
$apt_use_next_release = true
include apt
-
+
you will need to remove the variables, and the include and instead do
the following:
@@ -85,9 +85,9 @@ Ubuntu support is lagging behind but not absent either.
you will need to remove the variables, and the include and instead do the
following:
-
+
class { 'apt::listchanges': email => 'foo@example.com' }
-
+
* the apt::proxy_client class has been moved to a paramterized class. if you
were including this class before, after passing some variables, you will need
to move to instantiating the class with those variables instead. For example,
@@ -196,6 +196,14 @@ Class parameters:
If this variable is set the default repositories list ("main contrib non-free")
is overriden.
+* disable_update
+
+ Disable "apt-get update" which is normally triggered by apt::upgrade_package
+ and apt::dist_upgrade.
+
+ Note that nodes can be updated once a day by using
+ APT::Periodic::Update-Package-Lists "1";
+ in i.e. /etc/apt/apt.conf.d/80_apt_update_daily.
* custom_preferences
@@ -215,7 +223,7 @@ Class parameters:
apt/preferences file to be absent:
class { 'apt': custom_preferences => false }
-
+
* custom_sources_list
By default this module will use a basic apt/sources.list template with
@@ -296,9 +304,6 @@ classes may inherit from this one and add to its subscription list
using the plusignment ('+>') operator. A real-world example can be
seen in the apt::dist_upgrade::initiator source.
-When this class is included the APT indexes are updated on every
-Puppet run due to the author's lack of Puppet wizardry.
-
apt::dist_upgrade::initiator
----------------------------
diff --git a/manifests/init.pp b/manifests/init.pp
index 85f44f0..4c44af2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -142,7 +142,6 @@ class apt(
require => [
File['/etc/apt/apt.conf.d', '/etc/apt/preferences' ],
File['/etc/apt/sources.list'] ],
- loglevel => 'info',
refreshonly => true,
# Another Semaphor for all packages to reference
alias => [ 'apt_updated', 'refresh_apt']
diff --git a/manifests/unattended_upgrades.pp b/manifests/unattended_upgrades.pp
index ffb5fad..52d7542 100644
--- a/manifests/unattended_upgrades.pp
+++ b/manifests/unattended_upgrades.pp
@@ -11,6 +11,16 @@ class apt::unattended_upgrades (
ensure => $ensure_version
}
+ # For some reason, this directory is sometimes absent, which causes
+ # unattended-upgrades to crash.
+ file { '/var/log/unattended-upgrades':
+ ensure => directory,
+ owner => 'root',
+ group => 0,
+ mode => '0755',
+ require => Package['unattended-upgrades'],
+ }
+
$file_content = $config_content ? {
undef => template($config_template),
default => $config_content