am just curious as to why do you think that would be possible? Did you
use some other "puppet type" to similarly obtain information? like get
the size of a file, using File type?

Thanks,
Mohamed.

On Mon, Jan 24, 2011 at 9:15 AM, Jonathan Gazeley
<jonathan.gaze...@bristol.ac.uk> wrote:
> On 24/01/11 13:31, Felix Frank wrote:
>>
>> On 01/24/2011 02:07 PM, Jonathan Gazeley wrote:
>>>
>>> Hi all,
>>>
>>> Is there a way to use the Package type to find the version number of an
>>> installed RPM?
>>>
>>> I've consulted this page [1] and I can't see any documentation there
>>> that says this might be possible.
>>>
>>> I want to simply query my package manager and ask which version of a
>>> package is installed. I do not necessarily wish to ensure it is
>>> upgraded, etc.
>>>
>>> I know it's possible to do this with an exec call to rpm or yum, but I
>>> want to do it "properly" :)
>>>
>>> [1] http://docs.puppetlabs.com/guides/types/package.html
>>
>> Define "properly" :-) What is puppet supposed to do with this piece of
>> information? Log it somewhere?
>
> I want to place the version number in a variable, where it will be used to
> do some post-install config that depends on the version number :)
>
> By "properly" I meant to avoid exec calls unless as a last resort.
>
> Cheers,
> Jonathan
>
>>
>> Regards,
>> Felix
>>
>
>
> --
> ----------------------------
> Jonathan Gazeley
> Systems Support Specialist
> ResNet | Wireless & VPN Team
> IT Services
> University of Bristol
> ----------------------------
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to puppet-users@googlegroups.com.
> To unsubscribe from this group, send email to
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to