Changes between Initial Version and Version 1 of HowTo/InstallAnsibleInVB


Ignore:
Timestamp:
09/19/15 16:15:21 (9 years ago)
Author:
sedwards@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HowTo/InstallAnsibleInVB

    v1 v1  
     1= How to Install geni-lib on a VM using Virtual Box and Vagrant =
     2
     3'''These instructions are incomplete.'''
     4
     5It is not possible to run `ansible` on Windows.  Instead boot up a VM on your local machine and install `ansible` there.
     6
     7We find the combination of [https://www.virtualbox.org/wiki/Downloads VirtualBox] and [http://www.vagrantup.com/downloads vagrant] is really easy to use:
     8     1. Install [https://www.virtualbox.org/wiki/Downloads VirtualBox]
     9     1. Install [http://www.vagrantup.com/downloads vagrant]
     10     1. Download a file describing the VM
     11{{{
     12mac> mkdir ansible # make a directory for ansible
     13mac> cd ansible
     14mac> wget http://www.gpolab.bbn.com/exp/vagrant/ansible/Vagrantfile  # an Ubuntu 12.04 LR 32-bit image
     15}}}
     16     1. Create the ansible inventory file in the same directory as your Vagrantfile.
     17{{{
     18mac> readyToLogin.py MYSLICE --useSliceAggregates --ansible-inventory -o
     19}}}
     20     1. Bring up the VM and login:
     21{{{
     22mac> vagrant up # create an 12.04 LR 32-bit Ubuntu virtual machine with ansible installed
     23mac> vagrant ssh # login to your VM
     24}}}
     25     1. Run `ansible` with your inventory file:
     26{{{
     27ubuntu> ansible -i /vagrant/inventory all -m ping
     28}}}
     29     1. When you are done
     30{{{
     31ubuntu> exit
     32mac> vagrant halt # to shutdown your VM (vagrant destroy will completely delete the VM causing you to lose all your work)
     33}}}