错误:无法从prerun_command运行命令:执行' / etc / puppet / etckeeper-commit-pre'返回1:

时间:2014-12-30 02:04:45

标签: linux puppet

您好,当我将我的site.pp应用于客户端时,我收到上述错误,这里又是:

      Error: Could not run command from prerun_command: Execution of '/etc/puppet/etckeeper-commit-pre' returned 1: 

我的木偶大师的Puppet.conf:

[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post
certname=darmstadtium.shadowk.at
dns_alt_names=darmstadtium.shadowk.at
manifest=/etc/puppet/manifests/

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY



puppet.conf on agent: 
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
templatedir=$confdir/templates
prerun_command=/etc/puppet/etckeeper-commit-pre
postrun_command=/etc/puppet/etckeeper-commit-post
server=darmstadtium.shadowk.at

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY

1 个答案:

答案 0 :(得分:1)

与puppet 4.8.2新安装(debian stretch)遇到同样的错误。似乎etckeeper_command_pre和etckeeper_command_post没有被复制到/ etc / puppet /中,而puppet.conf说它们应该是。

我在/ usr / share / doc / puppet / examples / etckeeper-integration /(使用locate)中找到它们,然后复制到/ etc / puppet中并对它们执行chmod + x。

木偶经纪人 - 在此之后就像一个魅力。