chapmanb / cloudbiolinux

CloudBioLinux: configure virtual (or real) machines with tools for biological analyses
http://cloudbiolinux.org
MIT License
257 stars 158 forks source link

Connect easily, without login prompts, to vagant box for flavor development #171

Closed brainstorm closed 10 years ago

brainstorm commented 10 years ago

As discussed with @roryk, I'm having problems with my Vagrant box when developing the neuro flavor:

$ pwd
/Users/roman/dev/cloudbiolinux
$ fab -f fabfile.py -H 127.0.0.1:2222 -c contrib/flavor/neuro/fabricrc.txt install_biolinux:flavor=neuro

[127.0.0.1:2222] Executing task 'install_biolinux'
INFO: Config start time: 2014-07-09 15:47:17.827662
INFO: This is a Neuroinformatics Flavor
DBG [__init__.py]: Minimal Edition 1.9.0
INFO: This is a minimal
INFO: Distribution ubuntu
[127.0.0.1:2222] run: cat /etc/*release | grep DISTRIB_CODENAME | cut -f 2 -d =
[127.0.0.1:2222] Login password for 'vagrant':

My fabricrc looks like this:

$ cat contrib/flavor/neuro/fabricrc.txt

edition = minimal
flavor = NeuroFlavor
flavor_path = neuro.neuro
distribution = ubuntu
user = vagrant

# Global installation directory for packages and standard programs
system_install = /usr
local_install = ~/install
shell_config = ~/.bashrc
shell = /bin/bash -l -c
# data_files = /mnt/biodata
brainstorm commented 10 years ago

Thanks @chapmanb for his suggestion on providing the default internal vagrant insecure private key:

fab -f fabfile.py -H 127.0.0.1:2222 -i /Users/roman/.vagrant.d/insecure_private_key -c contrib/flavor/neuro/fabricrc.txt install_biolinux:flavor=neuro