错误检测木偶/ TheForeman
问题描述:
我写了公众bash script(和我)建立木偶/ TheForeman服务器的Ubuntu LTS 14.04服务器,这是在此基础上HOWTO上真正的快。我在DNS方面没有做任何事情。错误检测木偶/ TheForeman
ping $(hostname -f)
PING foreman.test.local (192.168.1.2) 56(84) bytes of data.
64 bytes from foreman.test.local (192.168.1.2): icmp_seq=1 ttl=64 time=0.035 ms
64 bytes from foreman.test.local (192.168.1.2): icmp_seq=2 ttl=64 time=0.049 ms
64 bytes from foreman.test.local (192.168.1.2): icmp_seq=3 ttl=64 time=0.054 ms
64 bytes from foreman.test.local (192.168.1.2): icmp_seq=4 ttl=64 time=0.054 ms
运行bash脚本后,我希望测试给了良好的效果,而是我得到一个错误信息:
sudo puppet agent --test
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find foreman.test.local via exec: Execution of '/etc/puppet/node.rb foreman.test.local' returned 1:
Info: Retrieving plugin
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node foreman.test.local: Failed to find foreman.test.local via exec: Execution of '/etc/puppet/node.rb foreman.test.local' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
答
当你read这似乎是一个选项,选择
命令和apt-get安装戏梦人生-y
但这是问题,在这种情况下不起作用。
所以在这种情况下,它应该是
wget的apt.puppetlabs.com/puppetlabs-release-trusty.deb
和
dpkg -i来puppetlabs释放-trusty.deb
改为!
在我看来,像'foreman'不是谁'foreman.test.local'是 – ptierno 2014-11-01 20:07:33
's/what/know /'抱歉 – ptierno 2014-11-02 08:54:40
你可以运行'/etc/puppet/node.rb foreman.test。本地“并粘贴输出? – 2014-11-03 09:37:26