Add node name as hostname

In order for the node to have the correct name in the hosts file, this
commit updates the hosts file resource block to use the node's name
instead of localhost.