Cleanup /etc/hosts to make both ganeti and vagrant happy

The later versions of Vagrant forced some changes in how it managed /etc/hosts
which makes ganeti unhappy. These changes properly deal with those changes (even
though they are hacky).
Update syntax with newer puppet