I\'m using puppet to configure servers. I want to print current machine (node) name in *.erb template. There is hostname variable, but this holds puppetmaster hostname.
Entering the following command into your terminal will return variables available in your erb files:
facter --puppet