我在 ubuntu 10.04 上使用 puppet 0.25.4,安装 puppet 后,我收到以下信息:11 月 29 日 10:30:30 puppet puppetmasterd[4422]: 主机缺少主机名和/或域:pclient.example.com
11 月 29 日 10:30:30 puppet puppetmasterd[4422]: 在 0.02 秒内为 pclient.example.com 编译目录
i dont know how to fix it ,who can help me
thank you !
my configuration :
I use apt-get to install the puppet,so some configuration have been fixed
puppet.conf on client :
> [main] server=puppet.example.com
> logdir=/var/log/puppet
> vardir=/var/lib/puppet
> ssldir=/var/lib/puppet/ssl
> rundir=/var/run/puppet
> factpath=$vardir/lib/facter
> pluginsync=false
> templatedir=$confdir/templates
> prerun_command=/etc/puppet/etckeeper-commit-pre
> postrun_command=/etc/puppet/etckeeper-commit-post
> certname=pclient.example.com
> node_name=cert [puppetd]
> runinterval=30
服务器上的 puppet.conf:
> [main] logdir=/var/log/puppet
> vardir=/var/lib/puppet
> ssldir=/var/lib/puppet/ssl
> rundir=/var/run/puppet
> factpath=$vardir/lib/facter
> pluginsync=true
> templatedir=$confdir/templates
> prerun_command=/etc/puppet/etckeeper-commit-pre
> postrun_command=/etc/puppet/etckeeper-commit-post
我使用 site.pp 上的默认节点
我对 Puppet 还比较陌生,所以我不知道这些问题的原因!!
再次感谢你!!!
答案1
Puppet 从 /etc/resolv.conf 中的域声明中获取其默认域。即使注释掉,它也会从最后一个域声明中获取它。