Giter VIP home page Giter VIP logo

docker-ansible-env-setup's Introduction

DOCKER ANSIBLE LAB

Note:
This will create 5 nodes in total
3 Ubuntu and 2 Oracle-Linux machines
See the docker-compose.yaml

Prerequisites

  • Have Docker installed
  • Have Docker Compose installed
  • Start the Docker daemon
  • You might want to add your user to the docker group for Ubuntu
  • And optionally, install my version (check the screenshot below) of higher image

Usage

Horror.Ansible.Project.mp4
  1. Git clone the repo and cd to it.
  2. Run docker-compose up -d.
  3. Then view the logs, run docker-compose logs -f
  4. Wait for about 1-5 minutes for a message like "SUCCESS! ... Happy hacking!"
  5. Your lab is ready!

Usage for the control-host

  1. Open a fresh terminal for each one
  2. Run docker container exec -it control-host bash
  3. Stay as root user.
  4. Then in the container, run cd ~/ansible-project as this is your base ansible directory
  5. Your lab is ready! You can now control and configure all servers. Run ansible all -m ping to test your servers' connections.

Note: Each of the 4 nodes (each server node)
have the following default user credentials on them.
username: zero
password: ][poiuy

Usage for servers (There are 4 four servers, this is an example for just server-1)

  1. Open a fresh terminal for each one
  2. Run docker container exec -it server-1 bash
  3. Then switch to zero user, run su - zero use \][poiuy as the password.

For more, also check out this blog post:

docker-ansible-env-setup's People

Contributors

stanleyogada avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.