ykuj 发表于 2014-12-8 09:16:04

puppet错误记录Could not find value for 'fqdn'

puppet一次错误记录报一下记录


1
2
3
4
5
6
7
8
9
# puppet agent --test --noop
notice: Ignoring --listen on onetime run
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed to parse template zabbix/zabbix_agentd_conf.erb:
Filepath: /usr/lib/ruby/site_ruby/1.8/puppet/parser/templatewrapper.rb
Line: 67
Detail: Could not find value for 'fqdn' at 6:/etc/puppet/modules/zabbix/templates/zabbix_agentd_conf.erb
at /etc/puppet/modules/zabbix/manifests/init.pp:16 on node agent_cert.domain.com
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run





需要修改几个地方内容

/etc/hosts
/etc/resolv.conf
/etc/sysconfig/network


# facter fqdn
puppet_agent.agent.puppet.com
这样就能得出 fqdn值


刚才的错误就消失了~~

1
2
3
4
5
# puppet agent --test --noop
notice: Ignoring --listen on onetime run
err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource 'File' for relationship from 'Package' on node agent_cert.domain.com
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run



页: [1]
查看完整版本: puppet错误记录Could not find value for 'fqdn'