GithubHelp home page GithubHelp logo

ansible-playground's Introduction

#Ansible Playground #

tmuxinator ansible-playground

This is a simple utility repository to bootstrap Ansible playground. It uses VirtualBox and Vagrant to provision:

  • 1 VM to be Master Orchestrator (available at 192.168.100.100)
  • n VMs (2 by default) to be DevOps Servers (available at 192.168.100.10[1-9])

###Installation###

  • Install the latest version of VirtualBox and VirtualBox extension
  • Install Vagrant
  • Clone this repository:
$ git clone [email protected]:sureshn/ansible-playground.git
$ cd ansible-playground
  • Start VMs (it will create 3 VMs and provision Ansible). There will also be a hosts file which will be created at /etc/ansible/hosts) which defines a new group named dev which contains the DevOps servers.
  • Create and provision all VM's:
$ vagrant up && vagrant provision

Once the VM's are up and running, install tmuxinator and run mux. This will connect to the provisioned 3 Vagrant VM's.

In order for the Master Orchestrator to Communicate with the DevOps Servers, generate a new SSH key in the master shell using ssh-keygen and copy the new key to the DevOps machines:

vagrant@master:~$ ssh-keygen
...
vagrant@master:~$ ssh-copy-id [email protected]
...
vagrant@master:~$ ssh-copy-id [email protected]
...

The password for the vagrant user on all machines is vagrant.

###Usage###

vagrant@master:~$ ansible dev -a "uptime"

192.168.100.101 | success | rc=0 >>
07:49:11 up  1:22,  2 users,  load average: 0.00, 0.01, 0.05

192.168.100.102 | success | rc=0 >> 
 07:49:11 up  1:19,  2 users,  load average: 0.00, 0.01, 0.05

ansible-playground's People

Contributors

ivuk avatar skx avatar sureshn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

episodeiv

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.