puppet node hostname

前端 未结 5 1466
暗喜
暗喜 2021-02-03 23:05

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.

5条回答
  •  佛祖请我去吃肉
    2021-02-03 23:26

    Entering the following command into your terminal will return variables available in your erb files:

    facter --puppet
    

提交回复
热议问题