Commit graph

39 commits

Author SHA1 Message Date
varac
0d5311b1a9 use codename instead of archive variable for Debian 2012-12-16 11:12:15 +01:00
varac
727b0cd218 squeeze: use colon seperator to be able to include backport updates,
also force unattended upgrades
2012-12-16 10:46:21 +01:00
varac
f1f64edd89 use oldstable for lenny, force unattended upgrades 2012-12-16 10:44:55 +01:00
varac
2fa22c2268 refactor 50unattended-upgrades default file
The syntax is valid from v0.70 on (Debian Wheezy, Ubuntu Oneiric
and later).
It includes Unattended-Upgrade::Origins-Patterns both for Debian
and Ubuntu, which even work on systems with both package sources
enables. On Debian- or Ubuntu-only systems it doesn't hurt to have
both Patterns included.
2012-12-16 10:36:32 +01:00
varac
28f7fa6bc2 from Ubuntu oneiric (11.10) on, the 50unattended-upgrades default can be used 2012-12-16 10:35:04 +01:00
varac
29a6478ced 50unattended-upgrades: ubuntu quantal, symlink to precise 2012-12-15 15:29:48 +01:00
varac
1fffb559e5 50unattended-upgrades: ubuntu precise version 2012-12-15 15:29:08 +01:00
varac
55305baaa9 50unattended-upgrades: squeeze version 2012-12-15 12:57:28 +01:00
varac
4e553d4b5f 50unattended-upgrades: lenny version 2012-12-15 12:49:20 +01:00
varac
e8c0500b5f Replaced fallback file for unattended-upgrades
with a decent one for wheezy onwards. The main syntax shouldn't
change, hopefully, from now on. It's a very basic generic one,
that uses variables for Distribution/Codename and should apply
to all coming distributions.

Removed from the default 50unattended-upgrades
----------------------------------------------

- APT::Periodic::Update-Package-Lists "1";
- APT::Periodic::Unattended-Upgrade "1";
cause this is not something the unattended upgrades class should
set by default.

- APT::UnattendedUpgrades::LogDir "/var/log/";
- APT::UnattendedUpgrades::LogFile "unattended_upgrades.log";
Because we shouldn't change the default logdest by default, which
is /var/log/unattended_upgrades/*.

- Blacklist for linux-image*, because this we shouldn't blacklist
  packages by default.
2012-12-15 12:46:19 +01:00
intrigeri
66433e665e Enable Unattended-Upgrade::MailOnlyOnError (Closes Redmine#3740). 2012-01-09 13:48:42 +01:00
intrigeri
bbe2c8aee9 New class: apt::dist_upgrade::initiator.
This implements the "update initiator" pattern suggested by
http://projects.puppetlabs.com/projects/puppet/wiki/Debian_Patterns.

This feature is useful when one does not want to setup a fully automated upgrade
process but still needs a way to manually trigger full upgrades of any number of
systems at scheduled times.
2010-12-16 13:03:08 +01:00
intrigeri
1cf642b3a8 Merge remote branch 'riseup/master' 2010-12-11 09:39:27 +01:00
intrigeri
5e94f0707c Update comment: Squeeze's unattended-upgrades 0.62 still does not support wildcards. 2010-12-11 09:30:51 +01:00
Micah Anderson
2ee70ab5e0 Set dselect DSelect::Clean to 'pre-auto' by default for hosts that are vservers.
Before you only had the choice of setting a 03clean apt configuration for either
all hosts, or every single host. Setting it to have the recommended settings for
vservers for all hosts meant that you were setting it for non-vservers as well
as vservers. The other option you had was to set it per host. This was a bit
annoying if you have any more than one vserver because you would need to create
a 03clean for every single vserver guest.

This change auto-detects if the node is a vserver, and if it is it automatically
installs the 03clean_vserver file, with the recommended DSelect::Clean settings,
and allows you to override this for all of your vservers, or for specific hosts.
2010-12-07 12:20:14 -05:00
intrigeri
10c7939f65 Merge remote branch 'immerda/master'.
Conflicts:
	README
	files/preferences
	templates/Debian/sources.list.deb-src.erb
	templates/Debian/sources.list.volatile.erb
	templates/Ubuntu/sources.list.backports.erb
	templates/Ubuntu/sources.list.deb-src.erb
2010-11-21 17:03:57 +01:00
intrigeri
71d42350d1 Merge commit '1b0bc415977c1c8b49390e0cdb1361769e0fdbae'.
Merging one more commit.

Conflicts:
	files/preferences
	templates/Debian/sources.list.deb-src.erb
	templates/Debian/sources.list.volatile.erb
	templates/Ubuntu/sources.list.backports.erb
	templates/Ubuntu/sources.list.deb-src.erb
2010-11-21 16:38:50 +01:00
intrigeri
d30069c178 Merge commit 'd97a49b7b2c020c2c43df6524236f50a421789ee'.
Going on merging immerda changes.

Incompatible change: I do prefer my own generic apt/preferences template to
shipping a static file that only supports Lenny. My own template supports
security, backports, volatile, next release etc.

Conflicts:
	files/preferences
	manifests/init.pp
	manifests/preferences.pp
2010-11-21 16:31:42 +01:00
intrigeri
ee6d13d1e4 Merge commit 'ac76a5d52df78aec919f08334ca5b140902a9298'
(Starting to merge changes from immerda.)

Conflicts:
	manifests/default_sources_list.pp
	manifests/init.pp
2010-11-21 16:24:57 +01:00
mh
5d54dfdd88 unfortunately no comments are allowed in that file 2010-10-28 22:44:13 +02:00
mh
ebb46ca200 fixing comments
apt preferences actually want // to comment, while sources are fine
to be commented with # ...
2010-10-28 22:27:28 +02:00
mh
4cff5ef63e Revert "remove comments as lenny apt doesn't like them"
This reverts commit 5de6431b89.

Actually the comments are just the wrong way...
2010-10-28 22:25:06 +02:00
mh
5de6431b89 remove comments as lenny apt doesn't like them
I got errors like:

E: Syntax error /etc/apt/apt.conf.d/03clean:4: Extra junk after value

Removing these comments fixed these problems.
2010-10-28 22:18:30 +02:00
mh
90c45cfe44 put the file at the right place & fix typos 2010-10-28 22:05:37 +02:00
Gabriel Filion
bd3b46ac07 Change "brought to you" into "managed" in headers
File headers are there to indicate that the files should not be touched
directly on the server. By changing the first sentence to "This file is
managed by Puppet", we reinforce the idea that it is already taken care
of by something else.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-25 14:19:58 -04:00
Gabriel Filion
1b0bc41597 Add file headers for awareness of puppet presence
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-25 01:13:44 -04:00
Gabriel Filion
d97a49b7b2 refactor: simplify and remove inline content
Simplifications: make apt_conf_snippet repeat less code, make code that
generates sources.list more concise.

Remove all inline content in favor of templates and static files.
The ability to include sources for static files was needed for
the main 'preferences' file, so it was added to the preferences_snippet
define.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-25 00:14:33 -04:00
Gabriel Filion
ac76a5d52d Add apt_conf_snippet and use it where possible
With the new define, it's easy to add an apt.conf snippet in apt.conf.d
It accepts either 'sources' to get a static file or 'content' to define
content inline or with the help of a template.

Put it to use where we create files in apt.conf.d

Finally, fix the dependancy to the apt_config file (however, I don't see
the need for this dependancy)

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2010-10-24 09:17:09 -04:00
nadir
851d20a7b6 merged with immerda/master 2010-10-22 19:17:57 +02:00
intrigeri
bcfb35c969 Merge remote branch 'nadir/master' into wip
Conflicts:
	manifests/default_preferences.pp
	manifests/default_sources_list.pp
	manifests/init.pp
	templates/Debian/sources.list.deb-src.erb
	templates/Debian/sources.list.erb
	templates/Debian/sources.list.volatile.erb
	templates/Ubuntu/sources.list.erb
2010-10-17 01:57:55 +02:00
Matt Taggart
356ff93340 backports.org has merged with the normal debian archive, the apt source changed and we don't need a separate apt-key for it now 2010-09-08 15:39:33 -07:00
root
dc3a7e41c6 fixed typo 2009-12-11 21:46:42 +01:00
root
a066eabfd1 cleaned 50unattended_upgrades 2009-12-11 18:04:26 +01:00
root
854f3c10b0 Added apt::unattended_upgrades class, and extra template for "deb-src" 2009-12-11 17:51:49 +01:00
Micah Anderson
49eb18e510 remove the riseup key file, we do not need to distribute this in this
module, its handled with our custom_key_dir
2009-03-16 14:36:36 -04:00
Pietro Ferrari
45165052e8 add riseup repo key 2009-03-15 12:59:13 -07:00
Micah Anderson
e0a6bf1b7a Revert "turn preferences into a simple file"
This reverts commit 0011e70a24.
2008-09-28 18:00:56 -04:00
root
0011e70a24 turn preferences into a simple file 2008-01-25 16:36:33 -05:00
david
f0c91f753a modularised apt
git-svn-id: http://club.black.co.at:82/svn/manifests/trunk@58 f03ff2f1-f02d-0410-970d-b9634babeaa1
2007-06-25 09:50:19 +00:00