Puppet/Facter “Could not retrieve fact fqdn”: How to fix or circumvent?

后端 未结 6 1718
庸人自扰
庸人自扰 2020-12-23 19:28

I\'m learning about puppet and trying to experiment with it on a VM at home. I\'m not using a puppet server yet, just running things locally. It works okay, but every time I

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 20:22

    Another possible way to circumvent is to override the fact.

    http://www.puppetcookbook.com/posts/override-a-facter-fact.html

    FACTER_fqdn=box.example.com facter
    

    On Windows this would be

    SET FACTER_fqdn=box.example.com
    facter fqdn
    

提交回复
热议问题