RailsCasts Pro episodes are now free!

Learn more or hide this

udit99's Profile

GitHub User: udit99

Comments by

Avatar

Also, the admin group didnt exist on the Ubuntu 12 VPS that I used. So the useradd failed. I ended up doing:

default.rb
group "admin" do
  gid 420
end

user "deployer" do
  password "$%^&shadowhash&$%&#*(."
  gid 420
  home "/home/deployer"
  supports manage_home: true
end

This worked for me. But anyone know if this is because of a difference in distros from the one used on the Railscast? Is admin usually a pre-created default group?

Avatar

Even after installing the above packages and finishing the ruby/chef installation process on the Ubuntu 12.04 VPS, I would get an error on launching 'chef -v':

Terminal
"/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- openssl (LoadError)"

I ended up doing this to install ruby and chef:

Terminal
apt-get update
apt-get install make ruby1.9.3
gem install chef ruby-shadow --no-ri --no-rdoc
Avatar

For some reason the chef_solo_bootstrap.sh didnt work for me. I had to end up installing the following packages:

apt-get install libreadline-gplv2-dev lib64readline-gplv2-dev make zlib1g-dev