Hi,

Have written what I think is a simple fact to return the version of an 
installed RPM, but when I use the returned variable its blank so perhaps 
someone can point me in the write direction, or somone might know a better 
way to do this. Here is the fact :-

require 'facter'
Facter.add('rpmbversion') do
  setcode do
    Facter::Util::Resolution.exec("rpm -qia rpm_name | grep Version | sed 
's/Version     : //g' |cut -f1-5 -d' '")
  end
end


Thanks in Advance :)

Richie.

-- 
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/3c1bbea6-9333-46d3-9f4e-c49206cc284d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to