razorsedge/puppet-psp — pull request #1 by replicant0wnz (2012-08-31 20:47:39+00:00)
Title: Added fact for reporting PSP version

Not sure if ya need this or not, but I needed it in my environment at the request of some other engineers. Pushed it out and it reported on the 280 nodes we have deployed on HP hardware. Just ran this query after directly on the Puppet DB:

select hosts.name, fact_values.value
from hosts, fact_values
where fact_values.fact_name_id = (select id from fact_names where name = 'psp_version')
and hosts.id = fact_values.host_id
order by name

I've only tested on 7.x, 8.x, and 9.x. For 8.x and 9.x it should report the actual PSP version based on the hp-snmp-agents rpm, but for 7.x it can only get the x.x version instead of the x.x.x version based off the hpasm rpm.