I want install rails.
I see chef_gem and gem_package
Which do I use? And how do I do it?
Thanks
I want install rails.
I see chef_gem and gem_package
Which do I use? And how do I do it?
Thanks
The chef_gem resource is for installing Ruby gems needed to extend Chef
on a given node. Given you have a full-chef (Omnibus) installation, and
want to have Chef pull data from LDAP, you could chef_gem "net-ldap"
to extend your Chef recipe with that particular gem.
The gem_package resource on the other hand is for managing a system
Ruby, or Ruby application stack, external to Chef. Given you have a
full-chef (Omnibus) installation, and want to manage an external Rails
application stack, you could use gem_package "rails"
. You could also
try something like ruby_application (http://ckbk.it/ruby_application)
cookbook to deploy by representing your implementation as data
structures and function calls.
Marshall University Computing Services
Drinko Library 428-K
One John Marshall Dr.
Huntington, WV 25755
Phone: 304.942.3970
Email: eric.wolfe@marshall.edu
You will be recognized and honored as a community leader.
On 08/28/2013 09:00 PM, David Montgomery wrote:
I want install rails.
I see chef_gem and gem_package
Which do I use? And how do I do it?
Thanks
On 08/28/2013 10:02 PM, Eric G. Wolfe wrote:
The chef_gem resource is for installing Ruby gems needed to extend
Chef on a given node. Given you have a full-chef (Omnibus)
installation, and want to have Chef pull data from LDAP, you could
chef_gem "net-ldap"
to extend your Chef recipe with that particular gem.The gem_package resource on the other hand is for managing a system
Ruby, or Ruby application stack, external to Chef. Given you have a
full-chef (Omnibus) installation, and want to manage an external Rails
application stack, you could usegem_package "rails"
. You could
also try something like ruby_application
(http://ckbk.it/ruby_application) cookbook to deploy by representing
your implementation as data structures and function calls.
Eric G. Wolfe
Senior Linux Administrator,
IT Infrastructure SystemsMarshall University Computing Services
Drinko Library 428-K
One John Marshall Dr.
Huntington, WV 25755
Phone: 304.942.3970
Email:eric.wolfe@marshall.eduYou will be recognized and honored as a community leader.
On 08/28/2013 09:00 PM, David Montgomery wrote:I want install rails.
I see chef_gem and gem_package
Which do I use? And how do I do it?
Thanks
Rails is usually installed via bundler as a dependency of your application,
at deploy time.
That said, if you want to install a system-wide rails for some other
reason, you want gem_package. If you want to use rails inside a Chef recipe
for whatever reason, then you want chef_gem.
On 28 August 2013 22:00, David Montgomery davidmontgomery@gmail.com wrote:
I want install rails.
I see chef_gem and gem_package
Which do I use? And how do I do it?
Thanks