首页 > 解决方案 > Puppet 4:由于缺少数据,agent 找不到 master

问题描述

我正在使用 Packt Publishing 的“Puppet 4 Essentials:第二版”,我被困在第 33 页。这里似乎有一个关键的细节完整摘录

Add this to /etc/hosts so that Puppet can contact the master:

它没有指定要添加什么。我是 puppet 4 的新手,目前正在从它迁移资源。我想避免在这里撞到墙上。

谁能帮我破译这段话?

编辑:
我正在尝试在 Centos 7 上运行它。机器可以成功地相互 ping 通。

我将此添加到代理中/etc/hosts

10.xxx.xxx.xxx  puppetmaster puppet

我将此添加到主人/etc/hosts

10.xxx.xxx.xxx puppetclient agent

(确认IP地址正确)

标签: puppet

解决方案


推荐阅读