Factoring out hostname in puppet script