在将我的puppet-master从2.7更新到3.6.2后,我在节点上运行puppet代理时得到以下消息:
err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `[]' for nil:NilClass on node fqdn
不幸的是我不能提供任何信息。 我puppet主debugging日志显示这个:
Jul 11 17:53:40 handsoff puppet-master[6197]: Caching node for fqdn Jul 11 17:53:40 handsoff puppet-master[6197]: undefined method `[]' for nil:NilClass on node fqdn Jul 11 17:53:40 handsoff puppet-master[6197]: undefined method `[]' for nil:NilClass on node fqdn Jul 11 17:53:40 handsoff puppet-master[6197]: undefined method `[]' for nil:NilClass on node fqdn
我在这些版本中运行木偶与领class:
# dpkg -l | grep foreman ii foreman 1.5.1-1 amd64 Systems management web interface ii foreman-installer 1.5.1-1 all Automated puppet-based installer for The Foreman ii foreman-postgresql 1.5.1-1 all metapackage providing PostgreSQL dependencies for Foreman ii foreman-proxy 1.5.1-1 all RESTful proxies for DNS, DHCP, TFTP, and Puppet ii ruby-foreman-api 0.1.11-1 all Ruby bindings for Forman's rest API ii ruby-foreman-bootdisk 2.0.8 all Foreman Bootdisk Plugin ii ruby-foreman-setup 2.0.4 all Foreman # dpkg -l | grep puppet ii facter 2.1.0-1puppetlabs1 amd64 Ruby module for collecting simple facts about a host operating system ii foreman-installer 1.5.1-1 all Automated puppet-based installer for The Foreman ii hiera 1.3.4-1puppetlabs1 all A simple pluggable Hierarchical Database. ii puppet 3.6.2-1puppetlabs1 all Centralized configuration management - agent startup and compatibility scripts ii puppet-common 3.6.2-1puppetlabs1 all Centralized configuration management ii puppetdb 2.1.0-1puppetlabs1 all PuppetDB Centralized Storage. ii puppetdb-terminus 2.1.0-1puppetlabs1 all Connect Puppet to PuppetDB by setting up a terminus for PuppetDB. ii puppetlabs-release 1.0-7 all "Package to install Puppet Labs gpg key and apt repo" ii puppetmaster 3.6.2-1puppetlabs1 all Centralized configuration management - master startup and compatibility scripts ii puppetmaster-common 3.6.2-1puppetlabs1 all Puppet master common scripts ii ruby-kafo 0.5.3-1 all If you write puppet modules for installing your software, you can use kafo to create powerful installer ii ruby-rgen 0.6.5-1puppetlabs1 all A framework supporting Model Driven Software Development (MDSD)
任何帮助是极大的赞赏。 我在这里完全没有想法。
在Puppet 2和3之间,config.ru(被Passenger用来在Apache下运行Puppet master)需要更新,因为Puppet的初始化已经改变了。
请参阅这里的发行说明: Puppet 3发行说明:Puppet主机架configuration已更改
Foreman的安装程序在/etc/puppet/rack/config.ru上设置这个文件,但是使用puppetmaster-passenger的Debian用户可能会在/ usr / share / puppet / rack / puppetmasterd /下find它。
工头用户还应该注意到Puppet CA集成所需的sudoers的变化:将Puppet从v2升级到v3陷阱 。