|Brian Salcedo afd7cdfc38 add screenshot||1 year ago|
|example||1 year ago|
|playbooks||1 year ago|
|test_db @ 6c60bc6b4a||1 year ago|
|.gitignore||1 year ago|
|.gitmodules||1 year ago|
|README.md||1 year ago|
|Vagrantfile||1 year ago|
|employees-screenshot.jpg||1 year ago|
Write an application that displays a list of employees according to the following criteria:
The application must make use of the following technology and tools:
The application is written in Django. After cloning this repository, use Vagrant to deploy the application. Vagrant will start an Ubuntu 16.04 LTS virtual machine, and then use Ansible to provision Docker, and start four containers:
The Vagrantfile defines a
private_network with an IP address of 192.168.33.10, so the user can access the application from a browser by visiting http://192.168.33.10/. You may change the IP, if needed.
This example requires Git, Vagrant with VirtualBox, and the
latest Ansible. This documentation is written with Ubuntu 16.04 LTS as a base, in mind. Users of other distributions, or OSX, can adapt these steps to achieve the desired result.
The included playbooks make use of newer features in Ansible that may not be available in the packaged version shipped with Ubuntu 16.04 LTS or Fedora 25. In this case, run Ansible in a virtual environment.
Setting up a virtual environment for Ansible (If your Ansible version is less than 2.1.x):
$ sudo apt-get install build-essential python-dev python-virtualenv libffi-dev libssl-dev
Once the dependencies are satisfied, use the following steps to deploy the application:
$ sudo apt-get install vagrant virtualbox
$ git clone --recursive https://github.com/salcedo/employees.git employees $ cd employees
$ ansible --versionIf running from a virtual environment, ensure the environment is active.
$ . venv/bin/activate (venv) $ ansible --version
Deploy the application.
~/employees$ vagrant up
After deployment is complete, point your browser to http://192.168.33.10/ to see the running application.