Hi, Mark!
Thanks for raising your concerns on this. This change was actually intentional, as we have been reporting the Ubuntu major release incorrectly for some time in Facter. In most platforms, splitting on the first ‘.’ of an X.Y.Z release would be a sane way of determining the major release, but Ubuntu does its versioning a bit differently. Given the Ubuntu release 10.04, the major version isn't actually 10; it's 10.04 and 10.10 isn't a patch release to 10.04. When Ubuntu does do a minor release for a distribution, they add it as the Z part of the X.Y.Z - for example, 14.04.1 should have a major release of 14.04 and a minor release of 1, not 4. Thus, our inclination here is to correct the long-standing, incorrect version reporting we’ve historically had for Ubuntu. A simple, backwards-compatible way to work with this value in your existing manifests would be to use an approximate regex match on the fact value, i.e: `if $lsbmajdistrelease =~ /^12/ …` On Tuesday, August 26, 2014 10:20:23 AM UTC-7, Matt W wrote: > > Hey we got this installed on some new systems yesterday and we found that > in Ubuntu 12 the `lsbmajdistrelease` fact has changed suddenly from `12` to > `12.04`! This actually broke quite a few of our manifests, and is > fundamentally broken I believe. The major dist release version is '12'. Has > anyone else seen this? > > root@dev-mwise-test-array-9-i-8046108d:~# facter -p | grep lsb >> lsbdistcodename => precise >> lsbdistdescription => Ubuntu 12.04.3 LTS >> lsbdistid => Ubuntu >> lsbdistrelease => 12.04 >> >> *lsbmajdistrelease => 12.04*lsbrelease => >> core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch >> os => {"release"=>{"full"=>"12.04", "major"=>"12.04"}, "name"=>"Ubuntu", >> "family"=>"Debian", >> "lsb"=>{"release"=>"core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch", >> >> "majdistrelease"=>"12.04", "distcodename"=>"precise", >> "distrelease"=>"12.04", "distdescription"=>"Ubuntu 12.04.3 LTS", >> "distid"=>"Ubuntu"}} >> root@dev-mwise-test-array-9-i-8046108d:~# dpkg --list | grep -i facter >> ii facter 2.2.0-1puppetlabs1 >> Ruby module for collecting simple facts about a host operating system >> root@dev-mwise-test-array-9-i-8046108d:~# > > > and after downgrading Facter.. > >> Processing triggers for man-db ... >> Setting up facter (2.1.0-1puppetlabs1) ... >> root@dev-mwise-test-array-9-i-8046108d:~# facter -p | grep lsb >> lsbdistcodename => precise >> lsbdistdescription => Ubuntu 12.04.3 LTS >> lsbdistid => Ubuntu >> lsbdistrelease => 12.04 >> >> *lsbmajdistrelease => 12*lsbrelease => >> core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch >> > > > On Monday, August 25, 2014 4:45:27 PM UTC-7, Adrien Thebo wrote: >> >> Facter 2.2.0 is a backward-compatible features-and-fixes release in the >> Facter 2 series. The release adds structured versions of several core fact >> types and contains backports of facts that were merged into Facter master >> but were not released in Facter 2.0.1. >> >> Headline features >> - new structured facts: os, system_uptime, processors >> >> To download Facter, follow the instructions here: >> http://docs.puppetlabs.com/guides/install_puppet/pre_install.html >> >> Release notes are available here: >> http://docs.puppetlabs.com/facter/latest/release_notes.html >> To see a complete list of issues fixed in this release: >> https://tickets.puppetlabs.com/issues/?filter=12624 >> We're tracking bugs people find in this release with the "Affected >> Version" field set to "2.2.0": >> https://tickets.puppetlabs.com/issues/?filter=12623 >> >> -- >> Adrien Thebo | Puppet Labs >> > -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/a984477b-dad8-4717-8e84-a4e410b641fa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.