Coder Social home page Coder Social logo

ansibot's Introduction

Ansibot - Provision your Dev Machines

Author: Harry Lee [email protected]

Introduction

Front end for provisioning machines using Ansible through a web app. The purpose of this project is to allow end users to provision their own machines/other hosts through a frontend without worrying about changing the hosts file. This abstracts the end users from the underlying implementations of playbooks. This example front-end allows users to enter their own credentials and will stream console logs from Ansible to the web front-end.

This project is based on react-starter-kit and uses Docker to deploy Ansible. Websockets (using Socket.io) are used to stream logs to the web front-end. Material-UI is used for the front-end.

Background

At VAT IT, it takes a very long time for new developers to get their machine set up with the correct configurations. This is a hideous and manual process. We have decided to automate this process by using Ansible to configure these developers' machines. This allows the developers to get started with the more important tasks instead of doing mundane set ups. The developers do not have to be clued up with Ansible either, they just have to enter their credentials.

Pre-requisites

This example project assumes that you have the following setup:

Directory Structure

  • ansible: This directory has the example Docker image for Ansible usage.
  • src: Source code for front-end.
  • docs: Docs for react starter kit.
  • tools: Webpack configs.

Usage

This example is biased to the specific dev machine setup for use in VAT IT.

  1. The host with this app installed (control machine) must be on the same network as the dev machine (ensure that they can discover each other).
  2. Run the web app on the control machine (the web app is default to serve on port 3000).
  3. Ensure that the dev machine is Ansible ready.
  4. Access the web app from the dev machine (ip address:3000) and enter dev machine credentials.
  5. Click "Submit" and view the logs.

To Run:

NODE_ENDPOINT_IP='http://localhost:3000' NODE_ENV_IMAGE='halosan/ansible-auto:demo' node build/server.js

Conclusion

This is a very simple implementation of viewing the remote docker output (process.stdout). There are many other applications for this implementation.

ansibot's People

Contributors

ademuk avatar bawjensen avatar bsitruk avatar burmecia avatar chentaixu avatar cmrnh avatar codeorelse avatar frenzzy avatar goatslacker avatar greenkeeperio-bot avatar jazmon avatar koistya avatar langpavel avatar matrus2 avatar nodkz avatar richb-hanover avatar rsanchezpp avatar rusjoan avatar sap9433 avatar sdiaz avatar sergiufalcusan avatar shakyshane avatar stujo avatar stupidism avatar swhite24 avatar tadjik1 avatar tobiasmuehl avatar zhiyelee avatar zwhitchcox avatar zwhu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.