Hi,

http://lists.centos.org/pipermail/centos-announce/2015-April/021010.html

https://tickets.puppetlabs.com/browse/FACT-893

Just run yum update



Le 26/05/2015 18:32, Claude a écrit :
Hi,

I'm testing the Openstack CentOS 7 image with Puppet 3.7.5. My problem is with Facter not identifying correctly the operating system :

[root@test2 vendor_ruby]# facter --version
2.4.4

[root@test2 vendor_ruby]# ruby --version
ruby 2.0.0p598 (2014-11-13) [x86_64-linux]

[root@test2 vendor_ruby]# cat /etc/redhat-release
Derived from Red Hat Enterprise Linux 7.1 (Source)

[root@test2 vendor_ruby]# uname -a
Linux centos2 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

[root@test2 vendor_ruby]# facter operatingsystemrelease -d
Confine raised NoMethodError undefined method `[]' for nil:NilClass
Found no suitable resolves of 1 for operatingsystemrelease
value for operatingsystemrelease is still nil

[root@test2 ~]# facter os
{"name"=>"RedHat", "family"=>"RedHat"}

I noticed that the CentOS image doesn't contain the command lsb_release so I installed it (with yum install redhat-lsb-core) and ran the test again : now I get more detail in the os variable but operatingsystemrelease is always empty:

[root@test2 ~]# facter operatingsystemrelease -d
Confine raised NoMethodError undefined method `[]' for nil:NilClass
Found no suitable resolves of 1 for operatingsystemrelease
value for operatingsystemrelease is still nil

[root@test2 ~]# facter os -d
{"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"}}


--
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 [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/01686988-6848-463a-a35b-cda9de0c5d8d%40googlegroups.com <https://groups.google.com/d/msgid/puppet-users/01686988-6848-463a-a35b-cda9de0c5d8d%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5564B620.8070306%40quake.fr.
For more options, visit https://groups.google.com/d/optout.

Reply via email to