todayhero 发表于 2014-12-22 11:43

puppet kick报错,到底是什么原因引起的。

本帖最后由 todayhero 于 2014-12-22 11:45 编辑

错误代码:# puppet kick -dhost171
Triggering host171
Getting status
status is running
Host host171 is already running
host171 finished with exit code 3
Failed: host171Host host171 is already running

按提示删除host171下面,文件,虽然可以执行成功,但没有更改内容。
rm -f /var/lib/puppet/state/puppetdlock

我只在客户端执行下面命令,命令才可以执行。
puppet agent --server host164.test.cn --test

todayhero 发表于 2014-12-22 11:53

找到原因了,原来新增加的puppet client,忘记配置了。puppetserver# cat /etc/sysconfig/puppet
# The puppetmaster server
PUPPET_SERVER=host164.test.cn

# If you wish to specify the port to connect to do so here
PUPPET_PORT=8140

# Where to log to. Specify syslog to send log messages to the system log.
PUPPET_LOG=/var/log/puppet/puppet.log

# You may specify other parameters to the puppet client here
#PUPPET_EXTRA_OPTS=--waitforcert=500
页: [1]
查看完整版本: puppet kick报错,到底是什么原因引起的。