Git Product home page Git Product logo

devops-in-a-box's Introduction

DevOp in a Box

Overview

Testing out the TIER IAM stack or DevOps (Jenkins or Docker) has never been easier.

[TODO]

Notes:

  • This project is not an example of Ansible best practices. There are likely many optimizations that can be made. Feel free to contribute a pull request if you'd like to suggest some.
  • Jenkin's needs some additional configuration post start-up. Login and apply Jenkins and plugin updates if you plan to use the deployment for real.
  • None of the private keys provided in this project should be used for real. Generate your own keys and certs before deploying if you base a real deployment off this project.

Starting Up

  1. Create some VMs:

    $ vagrant up
    Bringing machine 'admin-swarm' up with 'parallels' provider...
    Bringing machine 'jenkins-worker-1' up with 'parallels' provider...
    Bringing machine 'iam-swarm-mngr-1' up with 'parallels' provider...
    Bringing machine 'iam-swarm-wrkr-1' up with 'parallels' provider...
    ==> admin-swarm: Registering VM image from the base box 'generic/centos7'...
    ...
  2. Deploy the DevOps environment:

    $ docker run -it --rm -v ~/.vagrant.d/insecure_private_key:/private_key -v $(pwd):/ansible -w /ansible ansible/ansible-runner ansible-playbook project/test.yml -i inventory/hosts
    PLAY [all] ***************************************************************************
    TASK [Gathering Facts] ***************************************************************
    ok: [iam-swarm-mngr-1]
    ok: [jenkins-worker-1]
    ok: [admin-swarm]
    ok: [iam-swarm-wrkr-1]
    ...
    PLAY RECAP ***************************************************************************
    admin-swarm                : ok=47   changed=31   unreachable=0    failed=0
    iam-swarm-mngr-1           : ok=51   changed=33   unreachable=0    failed=0
    iam-swarm-wrkr-1           : ok=16   changed=11   unreachable=0    failed=0
    jenkins-worker-1           : ok=24   changed=13   unreachable=0    failed=0
  3. Enjoy your DevOps environment. (See Applications/Endpoints section below, I recommend starting with the visualizer apps)

Applications/Endpoints

Visualizer (Admin Swarm)

Jenkins (Admin Swarm)

Docker Registry (Admin Swarm)

Shibboleth IdP (IAM Swarm)

  • URL: https://10.211.56.20:4443/idp/
  • Accounts:
    • Username/Password: banderson / password
    • Username/Password: jgasper / password
    • Username/Password: jamith / password

Visualizer (IAM Swarm)

Miscellanious Actions

SSH Access to the VMs

See inventory/hosts for each hosts' IP Address.

ssh -i ~/.vagrant.d/insecure_private_key vagrant@10.

Tear Down the Environment

-f will destroy the VMs without prompting the user for approval.

vagrant destroy -f

devops-in-a-box's People

Contributors

jtgasper3 avatar

Watchers

Paul Baur 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.