Skip to content

jtgasper3/devops-in-a-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published