-
-
Save tinderfields/2863348 to your computer and use it in GitHub Desktop.
Install chef onto ubuntu 14.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add entry to .ssh/config | |
# See: http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/ | |
brew install ssh-copy-id | |
ssh-copy-id -i ~/.ssh/id_rsa.pub hetzner | |
# Get packages | |
apt-get -y update | |
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev ruby ruby-dev chef | |
gem install chef ruby-shadow --no-ri --no-rdoc | |
#Install pg and mysql gem later | |
# Check installs | |
root@Ubuntu-1204-precise-64-minimal ~ # ruby -v | |
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux] | |
root@Ubuntu-1204-precise-64-minimal ~ # chef-solo -v | |
Chef: 11.8.2 | |
exit | |
# CD to chef dir, check server then | |
./push | |
# Ideally we could set this up with scripts as per http://www.opinionatedprogrammer.com/2011/06/chef-solo-tutorial-managing-a-single-server-with-chef/ | |
Had to change user deployer to create first before manage in databags/user/deployer.json | |
--- | |
Had to run the following commands on the server | |
mkdir /etc/ssl_certs | |
chmod 750 /etc/ssl_certs/ | |
chown root.ssl-cert /etc/ssl_certs/ | |
Had to muck around with passenger | |
/usr/local/rvm/gems/ruby-1.8.7-p371@passenger/gems/passenger-4.0.44 # cp buildout/apache2/mod_passenger.so ext/apache2/ | |
Had to mkdir /var/www/sites | |
chown www-data.admin /var/www/sites/ | |
chmod g+w /var/www/sites/ | |
For the orbit gemset I had to: | |
http://stackoverflow.com/questions/15349869/undefined-method-source-index-for-gemmodule-nomethoderror | |
gem update --system 1.8.25 | |
For the senate site I had to: add tmp/rates/exchange_rates.xml | |
Also had to add /home/deployer/.aws/access_key and secret_key for backup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment