Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sammerry/c0482d53ad80f78a573d1139ca0ce1e6 to your computer and use it in GitHub Desktop.
Save sammerry/c0482d53ad80f78a573d1139ca0ce1e6 to your computer and use it in GitHub Desktop.
AdsNative: Devops Coding Challenge

Polymorph: Devops Coding Challenge

Get this simple Flask app up and running on a Vagrant VM using your known best devops practices as well as the instructions in the guidelines below. You must use Ansible as your provisioner to install and configure everything. When you're done, we should be able to type vagrant up and our app will be running and reachable on http port 80 at http://192.168.33.15 and http://devops.adsnative.com

Guidelines:

  • The provisioner should clone this github repo into the VM under /webapps/adsnative
  • You should be able to find what system packages are needed by looking through the app
  • You should not need to change the app code in any way
  • The app should be running as a non-privileged user
  • The app should be automatically restarted if crashes or is killed
  • The app should maxmimize all of the available CPUs (have Vagrant virtualize multiple CPUs)
  • The app's logs should be captured to /var/log/adsnative/app.log, and they should be rotated hourly
  • Timezone should be in US EST

Write your ansible code and templates in your own private repo and when complete, send to us the contents in a zip or tarball.

You may stick to the default Vagrant image (precise64) or use another preferred flavor of Linux.

We'll evaluate the submission on simplicity, code quality, and use of best practices of the provisioning code. Feel free to be creative and take liberties where you feel it will improve the deliverable!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment