From c68c68ea5d7439b5bdb9a18606e5444a3bc3a679 Mon Sep 17 00:00:00 2001 From: peusterm Date: Thu, 14 Jan 2016 16:57:57 +0100 Subject: [PATCH] updated install script --- README.md | 20 ++++++++++++++++++++ ansible/install.yml | 9 +++++++++ 2 files changed, 29 insertions(+) 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 -- 2.17.1