Looks like the default /etc/redhat-release on CentOS 7.1.1503 says "Derived from Red Hat Enterprise Linux 7.1 (Source)"
Changing it to "CentOS Linux release 7.1.1503 (Core)" appears to have fixed my facter problems but I would recommend using lsb facts instead in your forge modules going forward. On Tue, Mar 31, 2015 at 10:22 AM, Huaqing Zheng <huas...@gmail.com> wrote: > I just hit this bug on CentOS 7. Looks like my version of facter 2.4.1 > (from the puppet repos) doesn't have operatingsystemmajrelease. This is > breaking a number of my forge modules. > > [root@foobar]# rpm -q facter > facter-2.4.1-1.el7.x86_64 > [root@foobar log]# rpm -q puppet > puppet-3.7.5-1.el7.noarch > [root@foobar]# facter --puppet | grep -i centos > lsbdistdescription => CentOS Linux release 7.1.1503 (Core) > lsbdistid => CentOS > os => {"name"=>"RedHat", "family"=>"RedHat", > "lsb"=>{"distcodename"=>"Core", "distid"=>"CentOS", > "distdescription"=>"CentOS Linux release 7.1.1503 (Core) ", > "release"=>":core-4.1-amd64:core-4.1-noarch", "distrelease"=>"7.1.1503", > "majdistrelease"=>"7", "minordistrelease"=>"1"}} > [root@foobar]# facter --puppet | grep -i redhat > operatingsystem => RedHat > os => {"name"=>"RedHat", "family"=>"RedHat", > "lsb"=>{"distcodename"=>"Core", "distid"=>"CentOS", > "distdescription"=>"CentOS Linux release 7.1.1503 (Core) ", > "release"=>":core-4.1-amd64:core-4.1-noarch", "distrelease"=>"7.1.1503", > "majdistrelease"=>"7", "minordistrelease"=>"1"}} > osfamily => RedHat > [root@foobar]# facter --puppet | grep operatingsystem > operatingsystem => RedHat > > It looks like CentOS 7.1.1503 is confusing facter into thinking it's a > RedHat system and not setting operatingsystemmajrelease at all. > > > > > > On Thu, Mar 26, 2015 at 8:03 AM, James Olin Oden <james.o...@gmail.com> > wrote: > >> <snip> >> > It appears[1] that systemd should work without modification on FC19. >> > James, what version of facter do you have? Most importantly does it have >> > a fact for operatingsystemmajrelease? >> >> It does: >> >> [root@jefe ~]# facter | grep operatingsystemmajrelease >> operatingsystemmajrelease => 19 >> >> Best...James >> >> -- >> 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+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/puppet-users/CAPWHxfL4BcKA0%2BiaPp7puUnrLckJd_7Dex6cE88Yh8Af1%2B5CTg%40mail.gmail.com >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Huaqing Zheng > Code Wrangler > -- Huaqing Zheng Code Wrangler -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAKSYJTM%2BSqbowWCC3x3onSNZZm%3DDT6eaWMhDLz248787uPw17Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.