mh
fc7c12c44b
README fix - we should use template not an url
2011-04-14 21:51:05 +02:00
intrigeri
e2b4f42b54
Remove pinning for backports on Squeeze.
...
This is now done automatically by APT.
2011-04-03 19:27:43 +02:00
root
5964e90e33
Possibility to delpoy release related config file
2011-04-02 11:16:43 +00:00
root
63c7b5a643
Merge branch 'master' of git://labs.riseup.net/shared-apt
2011-04-02 07:53:38 +00:00
intrigeri
14cd91de33
apt::cron::dist-upgrade: silently keep old version of conffiles.
...
This makes this class' behaviour consistent with the apt::dist_upgrade one
and prevents stalled upgrades due to dpkg asking questions to a dumb robot.
2011-02-18 22:41:36 +01:00
root
13033f7d81
Merge branch 'master' of git://labs.riseup.net/shared-apt
2011-02-16 13:23:54 +00:00
intrigeri
840ea9ed9d
Debian Squeeze pinning: pin squeeze-updates as much as regular squeeze.
...
The previous template was indeed ensuring no package from squeeze-updates could
be easily or automatically installed.
2011-02-14 10:52:25 +01:00
intrigeri
045e1fc748
Stop hard-coding Wheezy name in Squeeze's pinning template.
...
Every needed function has been updated since Squeeze was released and we can
thus use a nice generic template.
2011-02-07 11:41:49 +01:00
intrigeri
f11e821f0a
debian_nextcodename: take into account Squeeze was released.
2011-02-07 11:28:29 +01:00
intrigeri
e32f4275a6
debian_release_version: add Squeeze's version number.
2011-02-07 11:27:54 +01:00
intrigeri
e19b574e23
Starting from Squeeze, Debian Volatile is deprecated in favor of CODENAME-updates.
...
Take this into account in the Debian sources.list template:
- go on using volatile.d.o for <= Lenny sources lines
- start using CODENAME-updates for Squeeze and newer.
Reference: http://lists.debian.org/debian-volatile/2011/01/msg00008.html
2011-02-07 11:17:07 +01:00
intrigeri
f362f05995
Update debian_release function since Squeeze has been released.
2011-02-06 08:56:54 +01:00
varac
44c6d6aa8f
updated Ubuntu preferences to include security + updates
2011-01-29 13:27:03 +01:00
varac
75f988242a
preferences.pp for ubuntu maverick
2011-01-23 23:33:06 +01:00
nadir
3c0499b78d
apt::custom_sources_template to deploy custom sources.list.d/xyz.list
2011-01-09 22:57:18 +01:00
intrigeri
d76f922dfb
Make sources snippets world-readable.
...
Not doing this breaks big parts of functionality, such as aptitude why.
2011-01-08 19:39:10 +01:00
Micah Anderson
c5dc8ff5fc
add -q to the apt-get invocation in upgrade_package.pp, also switch to using -y instead of --force-yes. this way we are acting in the same way as the dist_upgrade class
2010-12-18 15:47:11 -05:00
Micah Anderson
5fdadb955d
switch aptitude to apt-get, since aptitude will sometimes automatically do things that are unrelated to the task at hand, such as deinstalling automatically installed packages, which can be undesirable behavior
2010-12-18 14:01:11 -05:00
intrigeri
575e4ab9cc
Fix apt::upgrade_package when used multiple times.
2010-12-16 18:14:23 +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
4765a02564
New class: apt::dist_upgrade.
2010-12-16 13:02:28 +01:00
intrigeri
c0377ca737
Apply fix from 67dc9a22
to Squeeze template as well.
2010-12-15 22:20:08 +01:00
intrigeri
2d4f6d3522
Fix 5237f9da
.
2010-12-15 22:11:34 +01:00
intrigeri
7ffedbad6b
Merge remote branch 'riseup/master'
2010-12-15 22:01:34 +01:00
Micah Anderson
67dc9a2259
fix apticron template
2010-12-15 15:46:20 -05:00
Micah Anderson
5237f9dab0
change $listchanges_* to $apt_listchanges, not nice to clutter up the namespace like that
2010-12-15 14:49:34 -05:00
intrigeri
75cf15b7c7
Fix packages dependency.
2010-12-15 15:18:16 +01:00
intrigeri
a084ac642c
Use line define instead of append_if_no_such_line.
...
The latter is only a wrapper around the former and it seems we want to remove
the latter from our shared common module.
2010-12-15 10:44:14 +01:00
intrigeri
a06bf5f71b
apt::upgrade_package: explicitly depend on needed packages.
...
This define was previously broken unless dctrl-tools and apt-show-versions were
installed.
2010-12-15 10:00:47 +01:00
intrigeri
af8ecf1e9f
Repair Exec['update_apt'] to run apt-get update when needed.
...
Move this Exec to a dedicated class that is not included by default i.e. we
default not to "apt-get update" on every Puppet run.
We now make use of this class in the apt::upgrade_package define to make sure
APT indexes are up-to-date before attempting package upgrades.
One may now use the following to ensure current packages are installed by
Package resources:
include apt::update
Package { require => Exec[apt_updated] }
2010-12-15 09:47:57 +01:00
intrigeri
4979889584
(ugly workaround warning) Update packages lists before upgrading a package.
...
... because Exec[update_apt] is currently never run since we set it refreshonly.
Better solutions are being thought of, but in the meantime the least we can do
is somehow repair apt::upgrade_package.
2010-12-14 22:04:05 +01:00
intrigeri
1ae3fdfeb5
Make consistent the use of absolute path to apt-get.
2010-12-14 21:56:36 +01:00
intrigeri
5846da98ce
Factorize.
2010-12-14 21:39:50 +01:00
intrigeri
4625afacae
apt::reboot_required_notify: take into account the random sleep time.
2010-12-13 10:08:47 +01:00
intrigeri
4195a91773
Merge remote branch 'riseup/master'
2010-12-13 09:54:37 +01:00
Micah Anderson
f855a5a0ad
switch default frontend to 'mail' instead of pager, as most things are done non-interactively
2010-12-12 21:41:21 -05:00
intrigeri
4103a27054
Additionally use version number in Lenny default pinning.
...
Lenny's APT does not support pinning like this:
Pin: release o=Debian,n=<%= codename %>
We therefore switched (in commit ef2ebdffd
) to:
Pin: release o=Debian,a=<%= release %>
With such a pinning setup, when Squeeze is released, systems using this module
with $apt_use_next_release set to true would immediately switch to prefer
packages from Squeeze. If an automated upgrade process is setup, they would be
automatically upgraded to Squeeze.
This does not sound safe to me, so let's use the release version number as an
additional selection criterion to prevent upgrades to Squeeze to happen behind
our back:
Pin: release o=Debian,a=<%= release %>,v=<%= release_version %>*
Note that the trailing '*' is intentional and necessary to match stable
point-releases.
2010-12-12 09:57:42 +01:00
intrigeri
248d7e46ff
Bypass default APT proxy to access bugs.debian.org.
...
This is needed when using apt-listbugs with an APT proxy that only {wants,can}
proxy "normal" APT traffic.
2010-12-11 19:58:19 +01:00
intrigeri
fad111e036
Allow running cron-apt more than once a day.
2010-12-11 15:17:41 +01:00
intrigeri
874da52745
New class: apt::reboot_required_notify
...
This class installs a daily cronjob that checks if a package upgrade
requires the system to be rebooted; if so, cron sends a notification
email to root.
2010-12-11 14:50:16 +01:00
intrigeri
b467cda7f4
Fix formatting.
2010-12-11 14:46:29 +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
ab3a5294cf
removed bit from README that is no longer true
2010-12-09 09:51:00 -05:00
Micah Anderson
c67abe8d16
fix compile syntax error in ubuntu sources.list, closes #2639
2010-12-09 09:48:38 -05:00
Micah Anderson
9223dfc186
Merge remote branch 'lelutin/master'
2010-12-09 09:44:00 -05:00
Micah Anderson
d61a64b394
fix syntax error
2010-12-08 22:32:00 -05:00
Micah Anderson
d32573ae83
fix template missing <%- end -%>
2010-12-08 22:29:45 -05:00
Micah Anderson
8944374bf2
fix confusion over lsbrelease / lsbdistcodename
2010-12-08 22:27:13 -05:00
Micah Anderson
13bf7d0623
add apt-listchanges support. this is a nice compliment to using the upgrade_package functionality, because you get an email when the package has been upgraded.
2010-12-08 22:25:09 -05:00