This repo is made for a workshop to introduce ansible, vagrant, and docker to people. It contains a vagrant cluster, installing docker, and deploying a docker hello-world application on the cluster.
The following Software needs to be installed:
Go to https://www.vagrantup.com/downloads.html and download the appropriate package
Mac OS X:
sudo easy_install pip sudo pip install ansible
CentOS/Fedora:
sudo yum install ansible
Ubuntu:
sudo apt-get install software-properties-common sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update sudo apt-get install ansible
Bring up vagrant box cluster (3)
vagrant up
Tear down vagrant box cluster (3)
vagrant destroy
Ssh into vagrant box to see results
vagrant ssh (vagrant1 | vagrant2 | vagrant3)
Copy Over a txt file onto box vagrant3
ansible-playbook -i pool/dev/hosts --private-key=~/.vagrant.d/insecure_private_key -sku vagrant install_file.yml -l vagrant3
Install Docker 17
ansible-playbook -i pool/dev/hosts --private-key=~/.vagrant.d/insecure_private_key -sku vagrant install_docker.yml
Deploy Hello World Application
ansible-playbook -i pool/dev/hosts --private-key=~/.vagrant.d/insecure_private_key -sku vagrant deploy_app.yml
The docker role should be credited to https://github.com/geerlingguy/ansible-role-docker
The Hello World Application should be credited to https://hub.docker.com/_/hello-world/