Commit graph

14 commits

Author SHA1 Message Date
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
Micah Anderson
74db9ebf28 jessie has been released! 2015-05-06 10:41:47 -04:00
intrigeri
f8aa2ef872 Drop Debian Etch and Lenny compatibility.
Both have been unsupported for ages.
2013-12-08 21:58:20 +00:00
Micah Anderson
61a2f48948 Merge branch 'master' into leap 2013-05-26 17:04:05 -04:00
intrigeri
c38be6cb7c Wheezy was released! 2013-05-03 17:09:34 +02:00
varac
92d2d7be5f added custom fact apt_running 2013-01-20 17:32:02 +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
f362f05995 Update debian_release function since Squeeze has been released. 2011-02-06 08:56:54 +01: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
b4e24ecc06 Fix functions return values. 2010-10-10 12:05:26 +02:00
intrigeri
d50104ce10 Fix functions declaration and filenames. 2010-10-10 11:00:18 +02:00
intrigeri
5326c54b81 Rename function file so that puppet hopefully finds it. 2010-10-09 21:18:10 +02:00
intrigeri
d65e1573a9 Add a few useful functions. 2010-10-06 11:16:44 +02:00