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.
-
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'... ...
-
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
-
Enjoy your DevOps environment. (See Applications/Endpoints section below, I recommend starting with the visualizer apps)
- URL: https://10.211.56.10:8443
- Username:
admin
- Password:
password
- URL: https://10.211.56.10
- Username:
admin
- Password:
password
- URL: https://10.211.56.20:4443/idp/
- Accounts:
- Username/Password:
banderson
/password
- Username/Password:
jgasper
/password
- Username/Password:
jamith
/password
- Username/Password:
See
inventory/hosts
for each hosts' IP Address.
ssh -i ~/.vagrant.d/insecure_private_key vagrant@10.
-f
will destroy the VMs without prompting the user for approval.
vagrant destroy -f