From: peusterm Date: Thu, 14 Jan 2016 15:57:57 +0000 (+0100) Subject: updated install script X-Git-Tag: v3.1~185^2~12 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=c68c68ea5d7439b5bdb9a18606e5444a3bc3a679;p=osm%2Fvim-emu.git updated install script --- diff --git a/README.md b/README.md index 22a94b1..0dcf5a6 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,26 @@ * **test/** Unit tests * **example_topology.py** An example topology script to show how topologies can be specified +### Installation +Automatic installation is provide through an Ansible playbook. +* Requires: Ubuntu 14.04 LTS +* `sudo apt-get install ansible git` +* `sudo vim /etc/ansible/hosts` +* Add: `localhost ansible_connection=local` + +#### 1. Dockernet +* `git clone https://github.com/mpeuster/dockernet.git` +* `cd dockernet/ansible` +* `sudo ansible-playbook install.yml` +* Wait (and have a coffee) ... + +#### 2. Emulator +* `cd` +* `git clone https://github.com/mpeuster/emulator-strawman.git` +* `cd emulator-strawman/ansible` +* `sudo ansible-playbook install.yml` + + ### Run * First terminal: * `sudo python example_topology.py` diff --git a/ansible/install.yml b/ansible/install.yml index c457343..e3e2f38 100644 --- a/ansible/install.yml +++ b/ansible/install.yml @@ -2,6 +2,15 @@ tasks: - name: updates apt apt: update_cache=yes + + - name: install python-dev + apt: pkg=python-dev state=installed + + - name: install python-zmq + apt: pkg=python-zmq state=installed + + - name: install libzmq-dev + apt: pkg=libzmq-dev state=installed - name: install pip apt: pkg=python-pip state=installed