Issue #7670 has been updated by Ken Bowley.

The problem appears to be in the way that the operatingsystem fact is 
determined for Ubuntu.  If the lsbdistid is not available (cleared out during 
the Facter.clear), then it will fall back to finding the /etc/debian_version 
file and think it is Debian.  I found that if I do a 'Facter.loadfacts' 
followed by a 'Facter.flush', it will pick up the correct value again, but this 
doesn't help Puppet get the correct facts.
----------------------------------------
Bug #7670: operatingsystem fact incorrect after clear on Ubuntu
https://projects.puppetlabs.com/issues/7670

Author: Ken Bowley
Status: Accepted
Priority: Immediate
Assignee: 
Category: library
Target version: 
Keywords: 
Branch: 
Affected Facter version: 1.5.9


Facter returns incorrect facts for "operatingsystem" and 
"operatingsystemrelease" after Facter.clear is called when running on Ubuntu.

    $ irb
    irb(main):001:0> require 'rubygems'
    => true
    irb(main):002:0> require 'facter'
    => true
    irb(main):003:0> Facter["operatingsystem"].value
    => "Ubuntu"
    irb(main):004:0> Facter.clear
    => nil
    irb(main):005:0> Facter["operatingsystem"].value
    => "Debian"

This causes puppet to report the wrong operatingsystem, and breaks many 
manifests on our current deployment.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to