Hi Len, Thanks for the reply, sorry I should have been a bit clearer I actually meant puppet modules.
Ie I want to be able to establish if a puppet module is installed in the one of the modulepath locations root@core modules/puppet# puppet config print modulepath /etc/puppet/modules:/usr/share/puppet/modules I guess I could go down a similar path and write a fact to query the module directories and then query against this. Any other suggestions? Thanks, Peter On Apr 30, 6:00 am, Len Rugen <[email protected]> wrote: > I've used something like this: > > Facter.add(:zabbix_version) do > setcode do > output = %x{/bin/rpm -qa --queryformat "%{VERSION}" zabbix-agent} > end > end > > But rpm queries can be expensive. -- You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en.
