GithubHelp home page GithubHelp logo

p1nrojas / vcs-in-a-box Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 80 KB

Ansible playbook to create a Nuage Virtualized Cloud Services in just one KVM Box (32GB memory at least)

License: MIT License

Python 29.48% Shell 70.52%
playbook sdn ansible nuage python

vcs-in-a-box's Introduction

##Caution! Use it under your own risk. Intended for PoCs and Labs

#Create a Nuage VCS in a KVM Box

Hello there. Bored to create and recreate many times a dns/ntp/dhcp and Nuage VSP ( SDN controller ) servers for my demos. I've created this playbook It would create a libvirt VMs and set bind, ntp and dhcp up in one of the servers. And Nuage VSD ( management ) and a couple of VCSs (control).

Quick Start

Step 1: Create Dummies/Bridges interfaces

Create your bridges and dummies interfaces if you plan to install this in one box. If you don't plan to use just one Box. Skip this step. Check _bridges.yml for settings details. _bridges.yml playbook will set your KVM server with the following:

  1. Disable selinux
  2. Enable forwarding
  3. Disable NetworkManager and Firewall
  4. Flush iptables and create NAT rules
  5. Creat dummies and Bridges
  6. Reboot KVM host

Step 2: Create KVM domains and install software SDN and more.

You had to be sure you will access all the servers from your ansble-host. Create routes if you need. Check build.yml and nserver-deploy.yml vars previously to run the follow:

git clone https://github.com/p1nrojas/vcs-in-a-box
cd vsc-in-a-box
curl http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2 > /tmp/centos7.qcow2
# Copy your vsd and vsc qcow2 images to /tmp/vsc40r61.qcow2 and /tmp/vsd40r61.qcow2
# If you need those images ping me at pinrojas.com
ansible-playbook build.yml
./easy_way.sh

Reverse

You can use either _bridges.yml (you have to uncomment _bridges-reset role and comment _bridges role into the file ) to reverse bridges and dummies; or _reset-all.yml to destroy allyour KVM domains.

##Configuration

All the vars are in build.yml to create the server. And use nserver-deploy.yml for the services. Check the vars before to proceed.

You can change things like:

  1. domain (i.e. sdn40r61.lab )
  2. hostnames ( the FQDN must be defined accordingly with the domain )
  3. ip address and netmasks ( don't forget to check that on build.yml and nserver-deploy.yml )
  4. Images paths
  5. VSC system.ip
  6. memory, vcpus and disk size where is defined.

Have fun!

vcs-in-a-box's People

Contributors

p1nrojas avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.