工头UI木偶运行失败

时间:2016-09-27 08:35:48

标签: puppet foreman

我在端口8000上运行了foreman代理。

领班在3000港口运行

在端口8140上运行的puppetmaster服务。

另外,我配置了3个木偶代理,

  1. localhost puppet agent
  2. 远程主机代理1
  3. 远程主机代理2
  4. 当我从foreman GUI执行puppet run时,localhost工作正常,我能够在我的主控主机上运行puppet。因为我在/ etc / sudoers文件中添加了foreman-proxy,一切正常。

    但是在对这两个远程主机的puppet类进行配置更改后,我尝试从foreman GUI运行puppet run,但最终出现了以下错误。

    我认为它无法连接到远程主机......你怎么看?

      

    错误:执行puppetrun失败:ERF12-4252   [ProxyAPI :: ProxyException]:无法执行Puppet运行   ([RestClient :: RequestTimeout]:请求超时)代理   http://domain.com:8000/puppet

    更新1: 我按照这篇文章打开了端口 8139 ,并在 /etc/puppet/puppet.conf 中添加了 listen = true 。 现在我收到此错误

      

    错误:执行puppetrun失败:ERF12-4252   [ProxyAPI :: ProxyException]:无法执行Puppet运行   ([RestClient :: InternalServerError]:500内部服务器错误)for   代理http://lhdgameslab.com:8000/puppet

    来自/var/log/foreman-proxy/proxy.log的

    内容

    E, [2016-09-27T10:53:41.585056 #17092] ERROR -- : Failed puppet run: Check Log files
    E, [2016-09-27T10:54:33.020211 #17092] ERROR -- : Failed puppet run: Check Log files
    E, [2016-09-27T10:58:50.908303 #17092] ERROR -- : Failed puppet run: Check Log files
    E, [2016-09-27T11:02:37.603161 #17092] ERROR -- : Failed puppet run: Check Log files
    E, [2016-09-27T11:29:27.946510 #23644] ERROR -- : Failed puppet run: Check Log files
    E, [2016-09-27T11:29:36.748147 #23644] ERROR -- : Failed puppet run: Check Log files
    

    Server Puppet Version:3.0.1

    Agent Puppet Version:2.7.11

    更新2:

       [2016-09-27T12:05:35.403274 #26943] DEBUG -- : close: xxx.xxx.xx.xx:39355
    D, [2016-09-27T12:05:44.330022 #26943] DEBUG -- : accept: xxx.xxx.xx.xx:39386
    D, [2016-09-27T12:05:44.331547 #26943] DEBUG -- : Rack::Handler::WEBrick is invoked.
    D, [2016-09-27T12:05:44.336316 #26943] DEBUG -- : verifying remote client xxx.xxx.xx.xx against trusted_hosts ["xxx.com"]
    D, [2016-09-27T12:05:44.337116 #26943] DEBUG -- : require_ssl_client_verification: skipping, non-HTTPS request
    D, [2016-09-27T12:05:44.338831 #26943] DEBUG -- : about to execute: ["/usr/bin/sudo", "/usr/sbin/puppetrun", "--host", "yyyy.com"]
    W, [2016-09-27T12:05:45.270639 #26943]  WARN -- : Non-null exit code when executing '["/usr/bin/sudo", "/usr/sbin/puppetrun", "--host", "yyyy.com"]'
    E, [2016-09-27T12:05:45.271021 #26943] ERROR -- : Failed puppet run: Check Log files
    D, [2016-09-27T12:05:45.271080 #26943] DEBUG -- : Failed puppet run: Check Log files
    I, [2016-09-27T12:05:45.271835 #26943]  INFO -- : xxx.xxx.xx.xx - - [27/Sep/2016 12:05:45] "POST /puppet/run HTTP/1.1" 500 34 0.9376
    

1 个答案:

答案 0 :(得分:0)

在/ etc / puppet位置创建auth.conf解决了这个问题......

<强> /etc/puppet/auth.conf

path /run
method save
auth any
allow *