Commit graph

128 commits

Author SHA1 Message Date
Jérôme Charaoui
78e07815bc Remove squeeze special-case from unattended-upgrades template. 2016-06-30 21:20:05 +02:00
Jérôme Charaoui
98b4be5570 Drop Debian lenny and squeeze support. 2016-06-29 21:49:21 +02:00
Jérôme Charaoui
5fd6c96c42 Fix missing quote in IPADDRESSES assignment in apticron config 2016-06-29 20:55:59 +02:00
Jérôme Charaoui
6c0c1f4a16 Remove redundant symlinks for the Debian apticron template, fixes #2 2016-06-29 20:55:59 +02:00
Jérôme Charaoui
e876cd25b5 Remove redundant symlinks for the Debian listchanges template, fixes #2 2016-06-29 20:55:59 +02:00
intrigeri
a875536532 Merge remote-tracking branch 'lelutin-gitlab/backports_follow_debian_url' into shared-master 2016-06-29 14:53:57 +00:00
Jérôme Charaoui
53c49fe2ae Merge branch 'merge_debian_preferences_templates'
Conflicts:
	manifests/preferences.pp
	templates/Debian/preferences_jessie.erb
	templates/Debian/preferences_squeeze.erb
	templates/Debian/preferences_wheezy.erb
2016-06-29 16:35:17 +02:00
Gabriel Filion
0752201ce4 push logic behind apt::repos back in apt::params
The logic in specifying the default value for apt::repos is in the wrong
place: it should be in apt::params since this is exactly what this
latter class is for.

There's no special case that can involve making default the value follow
the value of another parameter so there's no point in having that logic
in the main class.
2016-06-27 15:41:19 +02:00
Micah
d372562329 Merge branch 'support_missing_ubuntu_releases' into 'master'
[feat] Support vivid, wily, xenial ubuntu release



See merge request !27
2015-12-04 21:27:26 +00:00
Antoine Beaupré
e4a9222d86 move backports to snippets
this allows for third party modules to enable this on the fly
2015-12-04 12:36:25 -05:00
varac
b5c65e29f1 [feat] Support vivid, wily, xenial ubuntu release 2015-11-02 23:50:08 +01:00
Jerome Charaoui
f8980538c1 Improve unattended-upgrades origin selectors
* On squeeze, use release fact instead of hardcoded release name
  * On wheezy, special-case because codename selector is not available
  * On jessie and up, start pulling in point-release updates. The
    codename selector ensures that we won't be upgrading to a new
    release automatically.
2015-10-09 16:39:19 -04:00
Jerome Charaoui
e4d777e5ec Fix merge conflict in README 2015-10-09 12:08:26 -04:00
Jerome Charaoui
48bf4a390e Merge Debian squeeze, wheezy, jessie and sid preferences templates into one 2015-10-07 10:36:12 -04:00
Antoine Beaupré
d87876a16f also disable volatile on ubuntu if relevant 2015-06-09 11:35:41 -04:00
Antoine Beaupré
3da1db2707 also control backports on ubuntu 2015-06-09 11:34:51 -04:00
Antoine Beaupré
dbee5c9487 typo 2015-06-09 11:28:54 -04:00
Antoine Beaupré
5ea69cb039 allow possibility of disabling backports 2015-06-09 11:25:34 -04:00
Jerome Charaoui
d007a40333 Replace debian_*() parser functions with facts
* Removes dependency on lsb-release and/or Facter >1.7
    (values are based on $::lsbdistcodename, when available)
* Simplifies maintenance: only lib/facter/util/* require updates as new
  releases are made

Caveats:
* apt::codename is removed; to override debian_* facts, set the
  FACTER_debian_codename environment variable for puppet
* If tracking unstable, make sure lsb-release is installed, as other
  methods can't tell between testing and unstable
2015-05-11 12:01:35 -04:00
Jerome Charaoui
87bfb868d7 Avoid unattended security upgrades from stable if running oldstable 2015-05-11 09:55:26 -04:00
Jerome Charaoui
ae4771b452 Adjusted sources.list template: LTS is now 'oldoldstable' 2015-05-07 18:37:24 -04:00
Jerome Charaoui
07424069c2 Fix typos in unattended-upgrades template 2015-05-07 12:52:25 -04:00
Jerome Charaoui
90a51c3ef8 Fix 50unattended-upgrades template for squeeze, better pattern for later release 2015-05-06 17:14:53 -04:00
Jerome Charaoui
f1a53bcfa7 Fix error in 50unattended-upgrades.erb syntax, remove lsb fact 2015-05-06 13:40:29 -04:00
LeLutin
106413f957 Merge branch 'preferences_utopic_erb' into 'master'
+ preferences_utopic.erb

See merge request !6
2015-04-18 04:55:05 +00:00
LeLutin
8a5835797d Merge branch 'fix_ubuntu_backports_entry' into 'master'
fix duplicate <main> ubuntu backports entry

See merge request !7
2015-04-18 04:45:50 +00:00
Gabriel Filion
6f6e725e60 Add parameter for blacklisting a list of packages.
This functionality was lost because we stopped using a source file for
the 50unattended-upgrades file that would previously let one override
the configuration per release or per host.
2015-04-17 16:43:26 -04:00
Gabriel Filion
0389b11261 unattended-upgrades: use an @ prefix for template variables 2015-04-17 16:42:22 -04:00
Gabriel Filion
d24ca3314f Parametrize unattended-upgrades mail recipient 2015-04-17 15:50:36 -04:00
Gabriel Filion
9192785c45 make it possible to opt out of MailOnlyOnError
This combines all files into one template. It should make maintenance
easier.
2015-04-17 15:50:36 -04:00
varac
dc341e60ad fix duplicate <main> ubuntu backports entry 2015-03-31 11:50:05 +02:00
varac
21ac1a9bf4 + preferences_utopic.erb 2015-03-31 10:36:08 +02:00
Jerome Charaoui
8ed07cac2f Merge branch 'master' of git://git.puppet.immerda.ch/module-apt
Conflicts:
	templates/Debian/sources.list.erb
2015-02-20 16:15:02 -05:00
intrigeri
7c55bee06a Merge remote-tracking branch 'shared/master' into feature/squeeze-lts 2015-02-07 16:25:05 +00:00
intrigeri
85c7554c4b Add support for Squeeze LTS. 2015-02-07 16:12:55 +00:00
Gabriel Filion
671610fab5 flip around security support for debian
with the release of squeeze-lts, the current way we deal with security
sources is problemaic. by flipping things around we hope to make the
files contents more stable.
2014-12-05 21:29:09 -05:00
mh
53e78e61fe Merge remote-tracking branch 'shared/master' 2014-04-18 11:00:04 +02:00
mh
af616677e6 address puppet 3.x deprecation warnings 2014-04-18 10:59:26 +02:00
Micah Anderson
98ad878c1a add apt listchanges template symlink for jessie - same as the others 2014-03-21 12:09:32 -04:00
Micah Anderson
7006cda333 add apticron_jessie symlink, same version in wheezy and sid 2014-03-21 12:07:19 -04:00
Micah Anderson
51b69c2661 Merge branch 'master' of buse.riseup.net:shared-apt 2014-03-21 12:04:25 -04:00
Micah Anderson
082a2f7768 add jessie preferences file 2014-03-21 12:03:56 -04:00
intrigeri
f8aa2ef872 Drop Debian Etch and Lenny compatibility.
Both have been unsupported for ages.
2013-12-08 21:58:20 +00:00
intrigeri
aac83e728c Lookup next_release in template the same way we lookup next_codename.
next_release was forgotten when next_codename was fixed.
2013-01-02 16:52:10 +01:00
Micah Anderson
07a031f205 fix for $lsbdistcodename regression introduced by ac166366d7
What happened here was the $codename = $::lsbdistcodename was removed from
init.pp and replaced with just $::lsbdistcodename whereever $codename was
used. Then in the sources.list.erb and preferences files things were changed
like this:

<pre>+### Debian current: <%= codename = scope.lookupvar('::lsbdistcodename') %>
...
-deb <%= debian_url %> <%= codename %> <%= repos %>
...
+deb <%= debian_url=scope.lookupvar('apt::debian_url') %> <%= codename %> <%= repos=scope.lookupvar('apt::repos') %>
</pre>

This meant that the codename was always set to lsbdistcodename, and you because
in newer puppet versions you cannot assign a value to a top-level facter
variable, it is not possible to change this.

Because we cannot change $lsbdistcodename, we have to fix this by allowing the
user to pass a different, non-top-level scoped variable to the class as a
parameter, which defaults to $::lsbdistcodename, so that upgrades can be
triggered.

This is documented in the README in an upgrade notice
2012-12-05 13:46:23 -05:00
Micah Anderson
b528cd0005 parameterize the apt::proxy_client class 2012-08-22 10:55:25 -04:00
mh
0c2f31b5d5 Merge remote-tracking branch 'shared/master'
Conflicts:
	README
	manifests/dist_upgrade/initiator.pp
	manifests/init.pp
	manifests/preseeded_package.pp
	manifests/unattended_upgrades.pp
2012-08-16 09:35:21 +02:00
intrigeri
02bd326994 Make apt::preferences_snippet support Puppet < 2.7 again, when the 'package' parameter is not set.
Details:
  https://labs.riseup.net/code/issues/3467
  https://labs.riseup.net/code/issues/3468
2012-06-18 22:57:13 +02:00
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
intrigeri
2e4d22ddd9 Allow passing arbitrary Pin value to apt::preferences_snippet.
Closes: Redmine#3467.
2012-06-08 18:30:23 +02:00