puppet一次错误记录报一下记录
[root@puppetagent ~]# 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
[root@puppet_agent ~]# facter fqdn
puppet_agent.agent.puppet.com
这样就能得出 fqdn值
刚才的错误就消失了~~
[root@puppet_agent ~]# 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[/etc/zabbix/zabbix_agentd.conf]' for relationship from 'Package[zabbix-agent]' on node agent_cert.domain.com warning: Not using cache on failed catalog err: Could not retrieve catalog; skipping run
参考资料~
http://caiguangguang.blog.51cto.com/1652935/1355027
转载于:https://blog.51cto.com/alwaysyunwei/1586702