Mostly cribbed from http://blogs.atlassian.com/2013/03/instant-java-provisioning-with-vagrant-and-puppet-stash-one-click-install/ and https://bitbucket.org/durdn/stash-vagrant-install/src/cc56cd22d175eba153c01d765c7943827004f987/manifests/default.pp?at=master