gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 10:58:56 27 4
gpt4 key购买 nike

你好,当我将我的 site.pp 应用到客户端时,出现了上述错误,又是这样:

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

我的 puppet 大师上的 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

最佳答案

使用 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。

puppet agent -t 在这之后像魅力一样跑了起来。

关于linux - 错误 : Could not run command from prerun_command: Execution of '/etc/puppet/etckeeper-commit-pre' returned 1:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27698709/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com