Hi Udara,

If you are using generic cartridge, Yes. Everything (ruby, apache and
passenger) will be installed when you subscribe to passenger cartridge.

Let me give you a sample passenger node definition.

# passenger cartridge node
node /passenger/ inherits base {

 $docroot = "/var/www/second"

  require java
  include '::apache'
  apache::vhost { 'second.example.com':
    port          => '80',
    docroot       => '/var/www/second/public',
    docroot_owner => 'root',
    docroot_group => 'root',
  }
  include '::apache::dev'

   class { 'ruby':
      version         => '1.8.7',
      gems_version    => '1.8.24',
      rubygems_update => false,
   }

 class {'passenger':
    passenger_ruby         => 'usr/bin/ruby1.8.7',
    passenger_version      => '3.0.21',
    passenger_provider     => 'gem',
    passenger_package      => 'passenger',
    gem_path               => '/var/lib/gems/1.8.24/gems',
    gem_binary_path        => '/var/lib/gems/1.8.24/bin',
    passenger_root         => '/var/lib/gems/1.8.24/gems/passenger-3.0.21',
    mod_passenger_location =>
'/var/lib/gems/1.8.24/gems/passenger-3.0.21/ext/apache2/mod_passenger.so',
  }

 class {'agent':}

}

I hope above node definition is answering your question.

Thanks.


On Tue, Jul 29, 2014 at 8:49 PM, Udara Liyanage <[email protected]> wrote:

>
> Hi Raj,
>
> Just for clarification. If we are to create a Passenger cartridge, when
> are we going to install Ruby/Python on it. Is it after subscription.
> I'm not well aware of the Passenger Ruby combination. Assume Ruby should
> be installed with Passenger.
>
>
> Touched, not typed. Erroneous words are a feature, not a typo.
>



-- 
Rajkumar Rajaratnam
Software Engineer | WSO2, Inc.
Mobile +94777568639 | +94783498120

Reply via email to