summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2015-12-07Fix require path for ubuntu_nextcodename.rbvarac
2015-12-07[bug] Fix debian_nextcodename on wheezy hostsvarac
I noticed this behaviour because $::debian_nextcodename was "squeeze" on a wheezy host. For debugging, i inserted a "puts codenames" in lib/facter/debian_nextcodename.rb, and it turned out that it was sorted differently on wheezy and jessie hosts: On wheezy: buster stretch jessie wheezy squeeze lenny On jessie: lenny squeeze wheezy jessie stretch buster So i decided to rewrite this so this doesn't happen again.
2015-12-07Fix loading of util/debian.rb for custom factsvarac
requirering the facter/util/debian.rb module causes puppet warnings on wheezy hosts, and custom facts like `$::debian_codename` cannot be evaluated. warning: Could not load fact file /srv/dev/projects/puppet/shared-modules//apt/lib/facter/debian_nextcodename.rb: no such file to load -- facter/util/debian Removing the require line solves this.
2015-10-09Fix debian_codename fact when falling back to parsing /etc/debian_versionJerome Charaoui
2015-06-03Fix bug with debian_nextcodenameJerome Charaoui
2015-05-11Replace debian_*() parser functions with factsJerome Charaoui
* 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-06jessie has been released!Micah Anderson
2013-12-08Drop Debian Etch and Lenny compatibility.intrigeri
Both have been unsupported for ages.
2013-05-26Merge branch 'master' into leapMicah Anderson
2013-05-03Wheezy was released!intrigeri
2013-01-20added custom fact apt_runningvarac
2011-02-07debian_nextcodename: take into account Squeeze was released.intrigeri
2011-02-07debian_release_version: add Squeeze's version number.intrigeri
2011-02-06Update debian_release function since Squeeze has been released.intrigeri
2010-12-12Additionally use version number in Lenny default pinning.intrigeri
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-10-10Fix functions return values.intrigeri
2010-10-10Fix functions declaration and filenames.intrigeri
2010-10-09Rename function file so that puppet hopefully finds it.intrigeri
2010-10-06Add a few useful functions.intrigeri