gpt4 book ai didi

puppet 企业: could not find terminus console for indirection node

转载 作者:行者123 更新时间:2023-12-02 11:51:30 25 4
gpt4 key购买 nike

我是 Puppet Enterprise 新手,在编译简单代理节点的目录时遇到了问题。 master 运行在 rhel6 机器上,而代理运行在 centos6.5 机器上,通过 vagrant 从 master 启动。当我从代理虚拟机运行以下命令时,会出现此问题:

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 Master(3.4.3 - Puppet Enterprise 3.2.3)的“puppet.conf”文件如下:

[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 Agent(版本 3.3.1)的“puppet.conf”如下:

[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

证书看起来是有序的。来自 puppet 师:

[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我本以为,由于我将终点设置为“普通”,puppet master 只会从 site.pp list 中检索节点对象,但它似乎正在寻找控制台节点终点...

任何想法或见解将不胜感激。

最佳答案

我目前正因为类似的问题而苦苦挣扎。虽然我还没有找到解决这个问题的特定版本的方法,但我在我的研究中发现了一些对其他人有用的好建议。

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

关于 puppet 企业: could not find terminus console for indirection node,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24920975/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com