Alexander Gray II
2014-Apr-19 02:09 UTC
[Puppet Users] detect python|ruby|foo-package installed
Is there a way in puppet to detect what version of python or ruby, or for
that matter, any package which is installed?
For instance:
if python_version > x:
do something
else
do something else
It looks liek versioncmp is what I want, but I don't know how to get the
version.
Maybe do some sort of exec that gets this version?
Sorry if this a newb question,
Thanks
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/f38247ad-0421-44b8-8ac8-31612829200d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.