- From: S Ahmed <
>
- To:
- Subject: [chef] When bootstrapping a server, how do you guys get gems setup in your path?
- Date: Mon, 18 Feb 2013 15:29:39 -0500
I'm using ec2 and chef-solo, and when I fireup an instance I boostrap it by updating apt and upgrading etc., and then install some basic things like:
1.
sudo apt-get install -y wget build-essential ruby1.8 ruby1.8-dev irb1.8 rdoc1.8 zlib1g-dev libopenssl-ruby1.8 rubygems1.8 libopenssl-ruby libzlib-ruby libssl-dev libpcre3-dev libcurl4-openssl-dev
2. rubygems, rake and bundler.
3. sudo gem install -y ohai chef --no-ri --no-rdoc
After this, I upload my chef cookbook, and then when I try and run:
sudo chef-solo -j chef.json -c /home/ubuntu/chef/config/solo.rb
I get an error b/c chef-solo isn't in my path, what do you guys do to get it in your path?
I'm sure my bootstrap method isn't ideal so I'm welcome to suggestions.
- [chef] When bootstrapping a server, how do you guys get gems setup in your path?, S Ahmed, 02/18/2013
Archive powered by MHonArc 2.6.16.