Puppet Enterprise:找不到间接节点的终端控制台

时间:2014-07-23 21:07:05

标签: puppet

Puppet Enterprise的新手,我遇到了为简单代理节点编译目录的问题。主人在rhel6盒子上运行,代理人正在通过主人从流浪者发射的centos6.5盒子上运行。从代理VM运行以下命令时会出现此问题:

bash-4.1$ sudo puppet agent --waitforcert 60 --test --certname agent.example.com
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: **Could not find terminus console for indirection node**
Info: Retrieving plugin
Info: Loading facts in /var/opt/puppet/lib/facter/maven_version.rb
Info: Loading facts in /var/opt/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/opt/puppet/lib/facter/root_home.rb
Info: Loading facts in /var/opt/puppet/lib/facter/jenkins.rb
Info: Loading facts in /var/opt/puppet/lib/facter/pe_version.rb
Info: Loading facts in /var/opt/puppet/lib/facter/puppet_vardir.rb
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when    searching for node agent.example.com: **Could not find terminus console for indirection node**
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

' puppet.conf' Puppet Master(3.4.3 - Puppet Enterprise 3.2.3)的文件如下:

[main]
    vardir = /var/opt/lib/pe-puppet
    logdir = /var/log/pe-puppet
    rundir = /var/run/pe-puppet
    ssldir = /etc/puppetlabs/puppet/ssl
    user  = pe-puppet
    group = pe-puppet

[master]
    certname = puppetmaster.example.com
    reports = puppetdb
    node_terminus = plain
    ssl_client_header = SSL_CLIENT_S_DN
    ssl_client_verify_header = SSL_CLIENT_VERIFY
    storeconfigs_backend = puppetdb
    storeconfigs = true

' puppet.conf'对于Puppet Agent(版本3.3.1)如下:

[main]
    vardir = /var/opt/puppet
    logdir = /var/log/puppet
    rundir = /var/run/puppet
    archive_files = true
    archive_file_server = puppet
    ssldir = $vardir/ssl

[agent]
    classfile = $vardir/classes.txt
    localconfig = $vardir/localconfig
    server = puppetmaster.example.com
    certname = agent.example.com
    environment = production

证书似乎是有序的。来自木偶大师:

[mark@puppetmaster puppetlabs]$ sudo puppet cert list agent.example.com
+ "agent.example.com" (SHA256) blah

最后,' site.pp'很简单:

node default {
  # This is where you can declare classes for all nodes.
  # Example:
  #   class { 'my_class': }
}
# The agentnode placeholder
node 'agent.example.com' {
    # tba
}

通过阅读the catalog compilation steps我会想到,因为我将终点设置为' plain' puppet master只是从site.pp清单中检索节点对象,但它似乎正在寻找控制台节点终端...

任何想法或见解都会受到赞赏。

2 个答案:

答案 0 :(得分:1)

我目前正面临着类似的问题。虽然我没有找到解决这个问题的特定版本的解决方案,但我在研究中找到了一些对其他人有用的好指针。

  • 确保您运行的是正确版本的Ruby(即:1.8.x而不是1.9+)
    • 编辑:显然这个错误已得到修复。通常支持最高2.1的Ruby版本。
  • 确保您的Puppet Master
  • 上安装了puppetdb-terminus包
  • routes.yaml中的标记(如果您有该文件)是否正确?

答案 1 :(得分:1)

我在尝试使用环境时遇到了类似的问题。

注释node_terminus配置默认为site.pp,这是你想要的吗?