On Jan 7, 2011 9:07 AM, "Martin Harrigan" <[email protected]> wrote:
> On Thu, Jan 6, 2011 at 5:55 PM, Daniel Pittman <[email protected]>
wrote:
>> On Thu, Jan 6, 2011 at 09:24, Martin Harrigan <[email protected]>
wrote:
>>
>> > I install the latest version of a Ruby gem using:
>> > package { 'passenger': ensure => latest, provider => 'gem' }
>> >
>> > However, I want to retrieve the actual version number for further
>> > configuration. Is this possible?
>>
>> 1. Use an 'exec' or something like that which evaluates on the client,
>> and ensure that it depends on the package action so that is completed
>> first. That can then react, and a 'refreshonly' exec will trigger
>> only when the upgrade happened.
>
> After installing Passenger, I install nginx. I use the template below for
an
> nginx configuration file:
> ...
> http {
> passenger_root /usr/lib64/ruby/gems/1.8/gems/passenger-<%=
passenger_version
> %>;
> ...
> }
> ...
>
> My problem is the passenger_version variable. I need to know the version
of
> Passenger that was installed in the previous step.
>
> Thank you for your suggestions; I will try something like (1).
I would probably use a fixed path in my nginx template, and use the exec to
make that path a symlink to the appropriate version of the passenger gem.
Regards,
Daniel
--
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.