-
Download and Install Virtual Box.
-
Download and Install Vagrant version 1.3.0 or greater.
-
Clone this repository.
git clone http://shady-git.ernest.ly/ops-engineer-exercise/
-
Choose a box type (CentOS 6 or Ubuntu 12.04)
cp Vagrantfile.{centos,ubuntu} Vagrantfile
-
vagrant up
-
Grab some coffee? Downloading the box and initial bootstrap may take a while
vagrant up
and vagrant provision
are very noisy because of the Vagrantfile configurations. if you prefer you can disable the s.verbose option, and perform a vagrant ssh
followed by a sudo salt-call state.highstate
.
-
Add yourself as a user to the configuration
-
Configure your user, and ewdurbin user with passwordless sudoers priveleges
-
Install nginx
-
Configure a simple nginx server which writes access logs to
/var/log/nginx/service/access.log
-
Configure logrotate to run every hour and rotate
/var/log/nginx/service/access.log
Perform as much of the above as you can within 2 hours.
This is a git repository, commit often and let us see your progress.
You may choose to work with Ubuntu 12.04 or CentOS 6, or for bonus have one setup which will work with both.
Submissions can either be a fork of this repository on github.com, or a tarball of the git repo emailed to edurbin@kissmetrics.com