Commit graph

337 commits

Author SHA1 Message Date
mh
f823fcd5b7 fix auto repo selection
the actual repos are in real_repos as by default we have auto.
2012-06-18 17:33:49 -03:00
mh
5d75c10a4d fix relations and finally get rid off config_file 2012-06-18 17:10:40 -03:00
mh
d47addd2ed get rid off config_file wrapper 2012-06-18 11:41:04 -03:00
mh
0e016e968d migrate away from hiera stuff 2012-06-14 10:07:29 -03:00
intrigeri
2e4d22ddd9 Allow passing arbitrary Pin value to apt::preferences_snippet.
Closes: Redmine#3467.
2012-06-08 18:30:23 +02:00
intrigeri
13a0b4484f Support multiple APT preferences snippets for the same package name pattern.
This is implemented by adding a "package" parameter to apt::preferences_snippet,
so that define names can be kept unique while the package names are
not necessarily.

Closes: Redmine#3468.
2012-06-08 18:18:50 +02:00
mh
ac166366d7 refactor things for >2.7 2012-06-08 12:16:46 -03:00
mh
0cb3cd816e Migrate - in class names to _
In newer puppet releases the old way to name class/modules with a -,
won't anymore be supported.

Conflicts:

	manifests/unattended_upgrades.pp
2012-06-08 15:07:48 +02:00
mh
39917fb4db new style for 2.7 2012-06-05 21:31:15 -03:00
Silvio Rhatto
1af58e700e Changing ubuntu preferences templates to symlinks 2012-05-20 17:42:49 +02:00
Silvio Rhatto
235cdafaa4 Adding precise template 2012-05-20 17:40:51 +02:00
Silvio Rhatto
0528f86f5e Adding preferences_oneiric.erb 2012-05-20 17:40:39 +02:00
Gabriel Filion
1ac72986c4 Apply GPL-v3 license
Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2012-04-21 05:54:28 -04:00
mh
f1a0eca466 Migrate - in class names to _
In newer puppet releases the old way to name class/modules with a -,
won't anymore be supported.
2012-04-15 15:41:58 +02:00
mh
bdc2446671 Merge remote-tracking branch 'shared/master'
Conflicts:
	README
2012-04-15 13:19:45 +02:00
intrigeri
ee33741aa1 Fix formatting. 2012-04-11 11:37:24 +02:00
intrigeri
1c96159d7e Depend on our shared concat module rather than ripienaar's one.
Most of us are likely to use and test against the former.
2012-04-11 11:36:31 +02:00
mh
56efade862 use correct references for new concat usage 2012-04-11 11:35:31 +02:00
mh
5173c71715 use the correct name 2012-04-11 11:35:31 +02:00
mh
8996d83489 migrate concatenated_file to the concat module 2012-04-11 11:35:31 +02:00
Gabriel Filion
a835369958 Force an apt-get update when changing an apt::sources_list
sources_list doesn't currently force puppet to run 'apt-get update'
after creating/modifying/removing files in sources.list.d.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2012-04-09 01:39:29 -04:00
Gabriel Filion
4d0ddd0057 Refactor: manage .d directories when using sources_list and apt_conf
The .d directories are only managed by the main 'apt' class. However,
both 'sources_list' and 'apt_conf' defines depend on those directories.
So in practice, the defines have an implicit need for those directories
to be somehow managed.

Let's turn this into an explicit relation, and include the directories
in the defines.

This makes it possible to use both defines without having to include the
main 'apt' class. (maybe when using puppet apply?)

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
2012-04-09 01:38:30 -04:00
intrigeri
66433e665e Enable Unattended-Upgrade::MailOnlyOnError (Closes Redmine#3740). 2012-01-09 13:48:42 +01:00
intrigeri
c7322addd5 Add apticron.conf template for Debian sid. 2011-10-06 19:09:48 +02:00
intrigeri
5ea84049ef Add listchanges.conf template for Debian sid. 2011-10-06 19:04:42 +02:00
mh
7727549c02 use correct references for new concat usage 2011-08-05 11:22:05 +02:00
mh
2b7cfe52f7 use the correct name 2011-08-05 11:12:29 +02:00
mh
e99f7c8672 migrate concatenated_file to the concat module 2011-08-05 10:57:13 +02:00
mh
85a8fedbd8 Merge remote-tracking branch 'shared/master' 2011-08-05 10:56:47 +02:00
intrigeri
546b5cbdbc Add preferences, listchanges, apticron templates for Debian Wheezy. 2011-06-20 20:07:24 +02:00
mh
b3246e9645 fixing unattended upgrade
We should use the correct origin archive. Lenny is oldstable.
2011-06-07 01:04:55 +02:00
mh
54932c9c21 fix unattended upgrades
as we use $lsbdistcodename as source we cannot name the sources
which should be used to update "stable". -> Fix it by deploying
a per lsbdistcodename configfile. This can also be used as a pre-
work for the #2681 shared modules bug.
2011-06-05 14:58:22 +02:00
intrigeri
4e6f65b0d5 Add empty line at the end of preferences templates.
... else the first block added by apt::preferences_snippet is in the same
paragraph as the last block provided by the template.
2011-05-07 18:15:02 +02:00
intrigeri
d0f7e98ec5 Revert "apt::custom_sources_template to deploy custom sources.list.d/xyz.list"
This reverts commit 3c0499b78d.
This was already provided by sources_list.pp.
2011-04-25 22:50:53 +02:00
Micah Anderson
11324d6057 Merge remote-tracking branch 'nadir/master' 2011-04-23 10:50:53 -04:00
Micah Anderson
9354f09460 Merge remote-tracking branch 'immerda/master' 2011-04-23 10:50:48 -04:00
intrigeri
b3b704d02e Debian sources: don't use next release's backports.
The APT pinning we ship does not support that, and this seems a bit too much of
a corner case to me to deserve being supported out-of-the-box.

Anyone willing to use current release + next release + next release backports
(e.g. Lenny + Squeeze + squeeze-backports) can anyway do so using
apt::sources_list and apt::preferences_snippet.

https://labs.riseup.net/code/issues/2856 is the bug that triggered this change.
2011-04-23 13:08:33 +02:00
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