Manual Install - noahgibbs/madscience GitHub Wiki
It's possible, of course, to do what the Gem does without running Chef locally. And in a few cases you may need to.
If you've installed the gem, you can look at its cookbook, called madscience-vagrant-cookbook, to find the versions you need. Specifically, check this file:
site-cookbooks/madscience-vagrant-cookbook/recipes/default.rb
When in doubt, please try to use the software instead of installing manually. It's easy to forget a file or two.
You'll find the version of Vagrant (1.7.1 as of this writing) and the versions of specific plugins to install. Here's what that code looks like:
node.default['vagrant']['version'] = '1.7.1' node.default['vagrant']['plugins'] = [ { 'name' => 'vagrant-omnibus', 'version' => '1.4.1' }, { 'name' => 'vagrant-librarian-chef', 'version' => '0.2.1' }, { 'name' => 'vagrant-aws', 'version' => '0.6.0' }, { 'name' => 'vagrant-digitalocean', 'version' => '0.7.3' }, { 'name' => 'vagrant-linode', 'version' => '0.1.1' }, { 'name' => 'vagrant-host-shell', 'version' => '0.0.4' }, ]
You'll also need to install Virtualbox, so search the file for 'virtualbox'. Here's what that code will look like:
case node['platform_family'] when 'mac_os_x' node.default['virtualbox']['url'] = 'http://download.virtualbox.org/virtualbo\ x/4.3.24/VirtualBox-4.3.24-98716-OSX.dmg' when 'windows' node.default['virtualbox']['url'] = 'http://download.virtualbox.org/virtualbo\ x/4.3.20/VirtualBox-4.3.20-96996-Win.exe' node.default['virtualbox']['version'] = Vbox::Helpers.vbox_version(node['virt\ ualbox']['url']) when 'debian', 'rhel' node.default['virtualbox']['version'] = '4.3' end
The most involved files to create are in the ~/.deploy_credentials directory. You can copy the JSON files in the cookbook's "files" directory over easily. You'll also want to create some new SSH keys by running ssh-keygen:
mkdir ~/.deploy_credentials # If it doesn't already exist chmod 0700 ~/.deploy_credentials # Keep it private cd ~/.deploy_credentials ssh-keygen -t rsa -q -b 4096 -f id_rsa_provisioning_4096" -P "" ssh-keygen -t rsa -q -b 4096 -f id_rsa_deploy_4096" -P ""
You'll also want to create an authorized_keys file containing at least your provisioning public key, generated above. You can also authorize whatever other SSH keys you'd like to.