Chef uses erubis.  This makes things easier.  Whitespace is still a pain.
Yay some whitespace issues fixed
Test for if the user is not root
Add the rest of the test cases for the template