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:~#
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
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/ …`
Hi, Mark!
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/53FDD3D6.8020908%40windriver.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/Ve0L1iW3NeU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users+unsubscribe@googlegroups.com.
Hey,I agree with the spirit of the fix but the fact that it isn't mentioned anywhere in the release notes is a bit annoying.
I personally also consider this a backwards incompatible release, you're changing old behaviour. Albeit for the better, but people depended on that behaviour and no prior warning or deprecation warning was issued.
Do also keep in mind that though we can easily fix our own manifests with a regexp match, since the launch of the Forge people have started to use more and more modules maintained by others. Unless the maintainer has already issued an update you're stuck with manually patching an upstream module and carrying that change. Depending on how you deploy your environment this might be difficult to do.
--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/Ve0L1iW3NeU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CALsUZFHQ_Pho_%2Bq9VCBMdMhe4DjcZRhvmF5NU74wTU-DXoZ9xg%40mail.gmail.com.
I have been using lsbdistcodename precisely because of the confusion with version numbers in ubuntu. In my environment I can safely assume that there is no difference in the way I deploy to 14.04 vs 14.04.x.
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/a984477b-dad8-4717-8e84-a4e410b641fa%40googlegroups.com.