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

后端 未结 6 1726
庸人自扰
庸人自扰 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条回答
  •  难免孤独
    2020-12-23 20:07

    I got the same error when running puppet on my home machine (Xubuntu). What worked for me was changing the second line of file /etc/hosts. The first two lines before the change:

    127.0.0.1   localhost
    127.0.1.1   box
    

    And after the change:

    127.0.0.1   localhost
    127.0.1.1   box.example.com box
    

    Now, the command hostname -f returns box.example.com instead of box, and puppet is happy.

提交回复
热议问题