]> gitweb.fluxo.info Git - puppet-apt.git/log
puppet-apt.git
15 years agoMake consistent the use of absolute path to apt-get.
intrigeri [Tue, 14 Dec 2010 20:56:36 +0000 (21:56 +0100)]
Make consistent the use of absolute path to apt-get.

15 years agoFactorize.
intrigeri [Tue, 14 Dec 2010 20:39:50 +0000 (21:39 +0100)]
Factorize.

15 years agoapt::reboot_required_notify: take into account the random sleep time.
intrigeri [Mon, 13 Dec 2010 09:08:47 +0000 (10:08 +0100)]
apt::reboot_required_notify: take into account the random sleep time.

15 years agoMerge remote branch 'riseup/master'
intrigeri [Mon, 13 Dec 2010 08:54:37 +0000 (09:54 +0100)]
Merge remote branch 'riseup/master'

15 years agoswitch default frontend to 'mail' instead of pager, as most things are done non-inter...
Micah Anderson [Mon, 13 Dec 2010 02:41:21 +0000 (21:41 -0500)]
switch default frontend to 'mail' instead of pager, as most things are done non-interactively

15 years agofixing alias bug
drebs [Sun, 12 Dec 2010 21:11:01 +0000 (19:11 -0200)]
fixing alias bug

15 years agoAdditionally use version number in Lenny default pinning.
intrigeri [Sun, 12 Dec 2010 08:43:40 +0000 (09:43 +0100)]
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.

15 years agoBypass default APT proxy to access bugs.debian.org.
intrigeri [Sat, 11 Dec 2010 18:58:19 +0000 (19:58 +0100)]
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.

15 years agoAllow running cron-apt more than once a day.
intrigeri [Sat, 11 Dec 2010 14:08:17 +0000 (15:08 +0100)]
Allow running cron-apt more than once a day.

15 years agoNew class: apt::reboot_required_notify
intrigeri [Sat, 11 Dec 2010 13:43:24 +0000 (14:43 +0100)]
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.

15 years agoFix formatting.
intrigeri [Sat, 11 Dec 2010 13:43:52 +0000 (14:43 +0100)]
Fix formatting.

15 years agoMerge remote branch 'riseup/master'
intrigeri [Sat, 11 Dec 2010 08:39:27 +0000 (09:39 +0100)]
Merge remote branch 'riseup/master'

15 years agoUpdate comment: Squeeze's unattended-upgrades 0.62 still does not support wildcards.
intrigeri [Sat, 11 Dec 2010 08:30:51 +0000 (09:30 +0100)]
Update comment: Squeeze's unattended-upgrades 0.62 still does not support wildcards.

15 years agoremoved bit from README that is no longer true
Micah Anderson [Thu, 9 Dec 2010 14:51:00 +0000 (09:51 -0500)]
removed bit from README that is no longer true

15 years agofix compile syntax error in ubuntu sources.list, closes #2639
Micah Anderson [Thu, 9 Dec 2010 14:48:38 +0000 (09:48 -0500)]
fix compile syntax error in ubuntu sources.list, closes #2639

15 years agoMerge remote branch 'lelutin/master'
Micah Anderson [Thu, 9 Dec 2010 14:44:00 +0000 (09:44 -0500)]
Merge remote branch 'lelutin/master'

15 years agofix syntax error
Micah Anderson [Thu, 9 Dec 2010 03:32:00 +0000 (22:32 -0500)]
fix syntax error

15 years agofix template missing <%- end -%>
Micah Anderson [Thu, 9 Dec 2010 03:29:45 +0000 (22:29 -0500)]
fix template missing <%- end -%>

15 years agofix confusion over lsbrelease / lsbdistcodename
Micah Anderson [Thu, 9 Dec 2010 03:27:13 +0000 (22:27 -0500)]
fix confusion over lsbrelease / lsbdistcodename

15 years agoadd apt-listchanges support. this is a nice compliment to using the upgrade_package...
Micah Anderson [Thu, 9 Dec 2010 03:25:09 +0000 (22:25 -0500)]
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.

15 years agoadd apticron support.
Micah Anderson [Thu, 9 Dec 2010 03:24:24 +0000 (22:24 -0500)]
add apticron support.

Why apticron, when we have cron-apt already? Some people have different preferences, we use apticron along with the upgrade_package functionality in this module. I know someone who uses cron-apt to run the upgrades, but apticron for notifications, because apticron's notifications are much nicer (cron-apt just gives you the output of apt-get upgrade)

15 years agoprovide an "03clean" alias for the 03clean_vserver to satisfy dependencies
Micah Anderson [Wed, 8 Dec 2010 14:57:02 +0000 (09:57 -0500)]
provide an "03clean" alias for the 03clean_vserver to satisfy dependencies

15 years agofix typo
Micah Anderson [Wed, 8 Dec 2010 05:02:15 +0000 (00:02 -0500)]
fix typo

15 years agomultiple sources for templates are not allowed (see #1818), so revert it to a single...
Micah Anderson [Wed, 8 Dec 2010 04:57:25 +0000 (23:57 -0500)]
multiple sources for templates are not allowed (see #1818), so revert it to a single source referenced by the README, and clarify the README to indicate how you can pass the preseed contents directly

15 years agochange the name of the custom_keys exec to be "custom_keys" instead of using the...
Micah Anderson [Wed, 8 Dec 2010 04:06:11 +0000 (23:06 -0500)]
change the name of the custom_keys exec to be "custom_keys" instead of using the alias metaparameter.

the reason for this change was because the Exec override was not able to find the exec through its alias

15 years agoupdate apt::preseeded_package template sources to use $lsbdistcodename instead of...
Micah Anderson [Wed, 8 Dec 2010 04:03:15 +0000 (23:03 -0500)]
update apt::preseeded_package template sources to use $lsbdistcodename instead of $debian_release, also expand it to allow for site-apt sources

15 years agoswitch to archive name for lenny default preferences
Micah Anderson [Wed, 8 Dec 2010 03:59:58 +0000 (22:59 -0500)]
switch to archive name for lenny default preferences

the templates/Debian/preferences_lenny.erb file checked in with
e2f80db7b76171e5945127e2fd42fb35043990fb contains pinning based on codename,
which is not supported in lenny (see #433624 - if you look at the version graph,
you see, "Fixed in version 0.7.21", and lenny has 0.7.20.2+lenny1.)

15 years agoREADME update: minor typo fix
Micah Anderson [Tue, 7 Dec 2010 18:53:01 +0000 (13:53 -0500)]
README update: minor typo fix

15 years agoREADME update: clarify that the debian-archive-keyring is managed already
Micah Anderson [Tue, 7 Dec 2010 18:44:30 +0000 (13:44 -0500)]
README update: clarify that the debian-archive-keyring is managed already

Just so people are clear that they do not need to specify a $custom_key_dir to manage the debian archive keyring, I've added some clarifying text so you know that this is not necessary

15 years agoREADME update: clarify the site-apt preferences options
Micah Anderson [Tue, 7 Dec 2010 18:39:54 +0000 (13:39 -0500)]
README update: clarify the site-apt preferences options

The README described a few things that were not true relating to the
apt/preferences file.

First of all it said you could ship a 'file', but preferences.pp very clearly
uses the 'content => $custom_preferences' parameter, which will not take file
sources, only templates.

Secondly, it seemed to imply that you could just drop the custom preferences
into your site-apt and it would work. But you actually need to set the
$custom_preferences to indicate the content source.

Lastly, it said that you could specify a host-specific file in the site-apt
module, but there is no facility for this (nor can you use files).

Perhaps this is where this module is going eventually, once we have a
preferences.d possibility? Until then, it makes more sense to have it reflect
the current situation.

15 years agoformat standardization
Micah Anderson [Tue, 7 Dec 2010 18:18:41 +0000 (13:18 -0500)]
format standardization

15 years agoswitch the default $debian_url to use the Debian CDN mirror address.
Micah Anderson [Tue, 7 Dec 2010 17:46:37 +0000 (12:46 -0500)]
switch the default $debian_url to use the Debian CDN mirror address.

The CDN checks your IP and uses the Max-Mind geoIP DB to determine your location and then uses your local country Debian Mirror, or if your local country doesn't have a debian mirror, it uses the local continent. It automatically checks and prunes dead mirrors. the technology for the Debian CDN setup is still improving, I believe that ASN-number associations are the next step to attempt to make more informed, finer-grained choices.

This is more useful than using ftp.debian.org because that is just a round-robin DNS entry that could get you any mirror anywhere.

15 years agoSet dselect DSelect::Clean to 'pre-auto' by default for hosts that are vservers.
Micah Anderson [Tue, 7 Dec 2010 17:20:14 +0000 (12:20 -0500)]
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.

15 years agoapt_conf: change mode to 644
Gabriel Filion [Mon, 29 Nov 2010 18:37:53 +0000 (13:37 -0500)]
apt_conf: change mode to 644

Current mode (600) makes it impossible to use apt-cache to search for
package names and info, since it tries to read all configuration files
in /etc/apt/apt.conf.d before executing.

Change configuration file mode to 644 so that search tasks can be made
without root priviledge.

15 years agominor README fixups
Micah Anderson [Wed, 24 Nov 2010 19:24:49 +0000 (14:24 -0500)]
minor README fixups

15 years agoBugfix
intrigeri [Sun, 21 Nov 2010 20:54:17 +0000 (21:54 +0100)]
Bugfix

15 years agoFix typo and rephrase.
intrigeri [Sun, 21 Nov 2010 16:10:20 +0000 (17:10 +0100)]
Fix typo and rephrase.

15 years agoMerge remote branch 'immerda/master'.
intrigeri [Sun, 21 Nov 2010 16:03:57 +0000 (17:03 +0100)]
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

15 years agoMerge commit '92aa5a51e95d74604a40318558aa98f70fcf7720'.
intrigeri [Sun, 21 Nov 2010 15:50:43 +0000 (16:50 +0100)]
Merge commit '92aa5a51e95d74604a40318558aa98f70fcf7720'.

A bunch of painlessly merged commits.

Conflicts:
manifests/init.pp

15 years agoMerge commit 'e2578c3b9820e9ff17f8a8881b8b22b5e241ee21'.
intrigeri [Sun, 21 Nov 2010 15:47:05 +0000 (16:47 +0100)]
Merge commit 'e2578c3b9820e9ff17f8a8881b8b22b5e241ee21'.

My branch already has support for defining custom APT mirrors location.
See $apt_debian_url, $apt_security_url, $apt_backports_url, $apt_volatile_url.
=> Discarding the addition of $main_apt_source.

15 years agoMerge commit '3c88b19dd33b4da1f37e2c08c981ccbcbe5a45a8'.
intrigeri [Sun, 21 Nov 2010 15:44:05 +0000 (16:44 +0100)]
Merge commit '3c88b19dd33b4da1f37e2c08c981ccbcbe5a45a8'.

Conflicts:
manifests/init.pp

15 years agoMerge commit '27d5808299045ebd6f428e7d8131d11d9ab37712'.
intrigeri [Sun, 21 Nov 2010 15:41:56 +0000 (16:41 +0100)]
Merge commit '27d5808299045ebd6f428e7d8131d11d9ab37712'.

One more painless merge commit.

Conflicts:
manifests/init.pp

15 years agoMerge commit '1b0bc415977c1c8b49390e0cdb1361769e0fdbae'.
intrigeri [Sun, 21 Nov 2010 15:38:50 +0000 (16:38 +0100)]
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

15 years agoMerge commit 'd97a49b7b2c020c2c43df6524236f50a421789ee'.
intrigeri [Sun, 21 Nov 2010 15:31:42 +0000 (16:31 +0100)]
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

15 years agoMerge commit 'ac76a5d52df78aec919f08334ca5b140902a9298'
intrigeri [Sun, 21 Nov 2010 15:24:57 +0000 (16:24 +0100)]
Merge commit 'ac76a5d52df78aec919f08334ca5b140902a9298'

(Starting to merge changes from immerda.)

Conflicts:
manifests/default_sources_list.pp
manifests/init.pp

15 years agoDo not refresh APT lists on every run.
intrigeri [Wed, 10 Nov 2010 13:44:01 +0000 (14:44 +0100)]
Do not refresh APT lists on every run.

Let's set refreshonly on the 'update_apt' Exec (aliased to 'apt_updated')
instead of removing it for backward compatibility: it may be in use at some
places to trigger updates.

15 years agoMerge remote branch 'nadir/master'
intrigeri [Wed, 10 Nov 2010 09:11:18 +0000 (10:11 +0100)]
Merge remote branch 'nadir/master'

Conflicts:
README
manifests/custom_sources.pp
manifests/default_preferences.pp
manifests/init.pp
manifests/unattended_upgrades.pp
templates/Debian/sources.list.volatile.erb

15 years agounfortunately no comments are allowed in that file
mh [Thu, 28 Oct 2010 20:44:13 +0000 (22:44 +0200)]
unfortunately no comments are allowed in that file

15 years agofixing comments
mh [Thu, 28 Oct 2010 20:27:28 +0000 (22:27 +0200)]
fixing comments

apt preferences actually want // to comment, while sources are fine
to be commented with # ...

15 years agoRevert "remove comments as lenny apt doesn't like them"
mh [Thu, 28 Oct 2010 20:24:57 +0000 (22:24 +0200)]
Revert "remove comments as lenny apt doesn't like them"

This reverts commit 5de6431b89b696ce17874952dceb5968108449a9.

Actually the comments are just the wrong way...

15 years agoremove comments as lenny apt doesn't like them
mh [Thu, 28 Oct 2010 20:18:30 +0000 (22:18 +0200)]
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.

15 years agoput the file at the right place & fix typos
mh [Thu, 28 Oct 2010 20:05:37 +0000 (22:05 +0200)]
put the file at the right place & fix typos

15 years agoCorrect some errors in the README
Gabriel Filion [Mon, 25 Oct 2010 18:36:19 +0000 (14:36 -0400)]
Correct some errors in the README

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoChange "brought to you" into "managed" in headers
Gabriel Filion [Mon, 25 Oct 2010 17:58:14 +0000 (13:58 -0400)]
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>
15 years agoUpdate the README
Gabriel Filion [Mon, 25 Oct 2010 17:54:37 +0000 (13:54 -0400)]
Update the README

Include new classes and defines and move things around for a little bit
of consistency.
Also remove the now unused variables.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoEnsure presence of sources.list.d and watch it
Gabriel Filion [Mon, 25 Oct 2010 16:36:59 +0000 (12:36 -0400)]
Ensure presence of sources.list.d and watch it

Add a file resource on the apt/sources.list.d directory to ensure that
it is created as a directory and watch it for modifications to
automatically refresh the apt cache.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoRemove $apt_unattended_upgrades
Gabriel Filion [Mon, 25 Oct 2010 16:32:49 +0000 (12:32 -0400)]
Remove $apt_unattended_upgrades

Unattended upgrades are not always necessary. Including the
apt::unattended_upgrades class through the main apt class is not
appropriate. It is better to make nodes include the
apt::unattended_upgrades class explicitly.

Remove the $apt_unattended_upgrades variable along with the include in
the 'apt' class.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoFix apt::preferences::absent
Gabriel Filion [Mon, 25 Oct 2010 16:17:50 +0000 (12:17 -0400)]
Fix apt::preferences::absent

Currently, setting the $custom_preferences variable to false fails
because of the /etc/apt/preferences concatenated_file being re-defined.

Fix this by setting dependencies on the resource only when we expect to
create the /etc/apt/preferences file. Also, since there is no "ensure"
parameter to concatenated_file, use a simple file resource to ensure
that it is removed.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoInclude the protocol in the proxy URL
Gabriel Filion [Mon, 25 Oct 2010 15:58:27 +0000 (11:58 -0400)]
Include the protocol in the proxy URL

The current proxy_client template makes it possible to communicate with
the proxy only via HTTP. Add the protocol to the variable so that it's
possible to change the protocol.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoAdd $main_apt_source
Gabriel Filion [Mon, 25 Oct 2010 15:55:15 +0000 (11:55 -0400)]
Add $main_apt_source

Currently, it's either we use the default source that's hardcoded in the
sources.list template or we redefine entirely this template.

Make it easier to just change the URL of the apt source while using the
rest of the default template by adding a $main_apt_source variable.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoRemove the now unused $apt_clean variable
Gabriel Filion [Mon, 25 Oct 2010 15:44:41 +0000 (11:44 -0400)]
Remove the now unused $apt_clean variable

This variable was deprecated in favor of using a list of file sources.
to change the value of the 'clean' property, you can either define a
file '03clean' in a site-apt module, or a per-host '$fqdn/03clean' file
in the same site-apt module.

Also, move the moduledir stuff below nearer to where it's actually used.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agorename things for easier understanding
Gabriel Filion [Mon, 25 Oct 2010 05:44:04 +0000 (01:44 -0400)]
rename things for easier understanding

remove the use of _snippet in names (except for preferences_snippet) so
that they represent directly a resource name.

rename custom_sources_template to sources_list.

modify sources_list to make it more flexible (gives the opportunity to
provide sources or content). this changes its behaviour in that the name
is now the name of the file in sources.list.d

rename proxy-client to proxy_client to use the same standard for its
name as the other classes.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoAdd file headers for awareness of puppet presence
Gabriel Filion [Mon, 25 Oct 2010 05:13:44 +0000 (01:13 -0400)]
Add file headers for awareness of puppet presence

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agorefactor: simplify and remove inline content
Gabriel Filion [Mon, 25 Oct 2010 04:14:33 +0000 (00:14 -0400)]
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>
15 years agoAdd apt_conf_snippet and use it where possible
Gabriel Filion [Sun, 24 Oct 2010 13:07:34 +0000 (09:07 -0400)]
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>
15 years agoMove default_sources_list into apt class
Gabriel Filion [Sun, 24 Oct 2010 11:32:14 +0000 (07:32 -0400)]
Move default_sources_list into apt class

The contents of the file default_sources_list.pp is used in only one
place. Remove the file and move its contents inside the apt class in
order to have one less useless depth level.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agonotify => Exec['refresh_apt']
nadir [Fri, 22 Oct 2010 17:18:12 +0000 (19:18 +0200)]
notify => Exec['refresh_apt']

15 years agomerged with immerda/master
nadir [Fri, 22 Oct 2010 17:17:57 +0000 (19:17 +0200)]
merged with immerda/master

15 years agoMerge remote branch 'lelutin/master'
mh [Wed, 20 Oct 2010 23:59:41 +0000 (01:59 +0200)]
Merge remote branch 'lelutin/master'

Integrate no custom preference into our new
way to manage the preferences.

Conflicts:
README
manifests/default_preferences.pp
manifests/init.pp

15 years agoMake it possible to ensure preferences is absent
Gabriel Filion [Mon, 18 Oct 2010 05:45:22 +0000 (01:45 -0400)]
Make it possible to ensure preferences is absent

The current code makes it mandatory to have a file /etc/apt/preferences
present. In the event that this file is empty or contains a space,
apt-get update cannot execute.

Add a case with the special value "false" that ensures the file does not
exist.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoRemove unnecessary exec
Gabriel Filion [Mon, 18 Oct 2010 05:43:24 +0000 (01:43 -0400)]
Remove unnecessary exec

When $custom_key_dir has not been assigned any value, a useless exec of
/bin/true is run. Remove this by using 'if' instead of 'case'.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoAdd a proxy-client class
Gabriel Filion [Mon, 18 Oct 2010 00:42:09 +0000 (20:42 -0400)]
Add a proxy-client class

The module currently doesn't have a handy way of making a server get its
packages via a proxy. Add a "proxy-client" class that makes this easy.

$apt_proxy declares the proxy server's fqdn
$apt_proxy_port declares the port used for connection

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoMake $apt_clean effective in all cases
Gabriel Filion [Mon, 18 Oct 2010 00:36:45 +0000 (20:36 -0400)]
Make $apt_clean effective in all cases

The file "/etc/apt/apt.conf.d/from_puppet" is currently only defined
when $custom_sources_list is not used (it is declared in
default_preferences).

Bring this file up in the apt class so that using custom sources doesn't
remove its addition.

Signed-off-by: Gabriel Filion <lelutin@gmail.com>
15 years agoMerge remote branch 'riseup/master'
Gabriel Filion [Mon, 18 Oct 2010 00:35:35 +0000 (20:35 -0400)]
Merge remote branch 'riseup/master'

Conflicts:
manifests/init.pp

15 years agoEnsure apt-listbugs is absent in dist-upgrade mode.
intrigeri [Sun, 17 Oct 2010 15:44:19 +0000 (17:44 +0200)]
Ensure apt-listbugs is absent in dist-upgrade mode.

Else it will crash automatic upgrades.

15 years agoNeed to update APT lists after apt.conf.d changes.
intrigeri [Sun, 17 Oct 2010 14:47:38 +0000 (16:47 +0200)]
Need to update APT lists after apt.conf.d changes.

15 years agoNo need to update APT lists when pinning changes (bis).
intrigeri [Sun, 17 Oct 2010 14:46:55 +0000 (16:46 +0200)]
No need to update APT lists when pinning changes (bis).

15 years agoFix one more relationship.
intrigeri [Sun, 17 Oct 2010 14:43:56 +0000 (16:43 +0200)]
Fix one more relationship.

15 years agoNo need to refresh APT lists after changes to pinning preferences.
intrigeri [Sun, 17 Oct 2010 14:43:04 +0000 (16:43 +0200)]
No need to refresh APT lists after changes to pinning preferences.

15 years agoFix indentation.
intrigeri [Sun, 17 Oct 2010 14:42:15 +0000 (16:42 +0200)]
Fix indentation.

15 years agoFix relationships.
intrigeri [Sun, 17 Oct 2010 14:41:40 +0000 (16:41 +0200)]
Fix relationships.

15 years agominor improvements, especially do not refresh apt every run
mh [Sun, 17 Oct 2010 13:18:08 +0000 (15:18 +0200)]
minor improvements, especially do not refresh apt every run

15 years agoimprove example
mh [Sun, 17 Oct 2010 12:43:06 +0000 (14:43 +0200)]
improve example

15 years agoempty line between snippets
mh [Sun, 17 Oct 2010 12:40:27 +0000 (14:40 +0200)]
empty line between snippets

15 years agofix header file
mh [Sun, 17 Oct 2010 12:36:28 +0000 (14:36 +0200)]
fix header file

15 years agofix classname
mh [Sun, 17 Oct 2010 12:29:01 +0000 (14:29 +0200)]
fix classname

15 years agofix modules directory stuff
mh [Sun, 17 Oct 2010 12:27:27 +0000 (14:27 +0200)]
fix modules directory stuff

15 years agoimprove prefrences snippet
mh [Sun, 17 Oct 2010 12:13:02 +0000 (14:13 +0200)]
improve prefrences snippet

15 years agointroduce preferences snippet
mh [Sun, 17 Oct 2010 11:58:59 +0000 (13:58 +0200)]
introduce preferences snippet

Now, we have the possibility to externally add snippes, so that
we can preferences for packages that are for example only in backports
or unstable.

15 years agoSupport choosing a custom Ubuntu mirror.
intrigeri [Sun, 17 Oct 2010 08:51:06 +0000 (10:51 +0200)]
Support choosing a custom Ubuntu mirror.

15 years agoUse append_if_no_such_line instead of line.
intrigeri [Sun, 17 Oct 2010 00:54:20 +0000 (02:54 +0200)]
Use append_if_no_such_line instead of line.

15 years agoMigrate config file to line-editing.
intrigeri [Sun, 17 Oct 2010 00:21:08 +0000 (02:21 +0200)]
Migrate config file to line-editing.

This allows other modules to add lines there too.

15 years agoBackward compatibility: ensure old renamed file is absent.
intrigeri [Sun, 17 Oct 2010 00:13:59 +0000 (02:13 +0200)]
Backward compatibility: ensure old renamed file is absent.

15 years agoBring /etc/apt/apt.conf.d/99from_puppet to init.
intrigeri [Sun, 17 Oct 2010 00:11:41 +0000 (02:11 +0200)]
Bring /etc/apt/apt.conf.d/99from_puppet to init.

APT configuration has (unfortunately) nothing to do with APT preferences.

15 years agoSupport $apt_repos for Ubuntu as well.
intrigeri [Sun, 17 Oct 2010 00:01:48 +0000 (02:01 +0200)]
Support $apt_repos for Ubuntu as well.

15 years agoMerge remote branch 'nadir/master' into wip
intrigeri [Sat, 16 Oct 2010 23:57:55 +0000 (01:57 +0200)]
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

15 years agoBring in a bit of Ubuntu support from Nadir.
intrigeri [Sat, 16 Oct 2010 23:35:37 +0000 (01:35 +0200)]
Bring in a bit of Ubuntu support from Nadir.

15 years agoRename $apt_use_volatile to $apt_volatile_enabled.
intrigeri [Sat, 16 Oct 2010 23:12:19 +0000 (01:12 +0200)]
Rename $apt_use_volatile to $apt_volatile_enabled.

This will help merging with Nadir's changes.

15 years agoManage a /etc/apt/apt.conf.d/99-puppet file.
root [Sat, 16 Oct 2010 21:59:23 +0000 (23:59 +0200)]
Manage a /etc/apt/apt.conf.d/99-puppet file.

15 years agoSyntax fix
intrigeri [Sat, 16 Oct 2010 20:16:02 +0000 (22:16 +0200)]
Syntax fix