我确信这个问题对于Ruby用户来说是一个简单的问题。然而,对我来说,这是一个我自己无法解决的问题。
我的目标是在Ubuntu-10.4系统上使用木偶存档(ext/nagios/check_pupet.rb)中包含的脚本。
我试着启动脚本:
$ sudo ./check_puppet.rb
./check_puppet.rb:4:in `require': no such file to load -- sys/proctable (LoadError)
from ./check_puppet.rb:4
好的,少了些东西。我发现我需要一个叫做sys-proctable的库
尝试从节点运行puppet更新时:
sudo /opt/puppetlabs/bin/puppet agent -t
我得到一个错误:
Error: Could not retrieve catalog; skipping run
Error: Could not send report: Connection refused - connect(2) for "puppet" port 8140`
别处指示这可能是puppetserver服务的问题,并建议重新启动服务器。重启没有帮助,当我尝试重启服务时,我得到了失败:
~$ sudo service puppetserver
我想在高可用性环境中配置puppet。我已经配置了2个傀儡主人,但是他们不能通过CA相互签名。当我尝试测试puppet agent --test时,它给出了以下错误:
'Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: getaddrinfo: Name or service not known
Info: Retrieving pluginfacts
Error: /File[/home/clogeny/.puppet/var/facts.d]: Failed
安装木偶后,我有以下错误:
# puppet master --version
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- json (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /usr/lib/ruby/site_ruby/1.8/puppet/mo
嗨,我是Kali linux用户,试图在DietPi linux上设置傀儡客户端和服务器。
# sudo puppet config set server user.example.com
运行木偶时:
# puppet agent -v --test
Error: request https://user.example.com:8140//puppet-ca/v1/certificate/ca failed: Failed to open TCP connection to user.example.com:8140 (getaddrinfo: Name or service not k
下面是我的傀儡主puppet.conf文件
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
certname = puppet
dns_alt_names = puppet
[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webr
下面的代码可以调用puppet-agent安装角色,这适用于Linux,但是,当我使用become机器时,它会给become行带来错误。
如何为Linux和Windows更新下面的代码。包括成为为Linux和排除become的窗口?
---
- hosts: all
become: yes
roles:
- puppet-agent
错误消息
fatal: [winhost]: FAILED! => {"msg": "The powershell shell family is
incompatible with the sudo bec
使用木偶0.25.5运行CentOS 5.5
我已经安装并正在使用傀儡-sysctl模块。
然而,发生以下错误:
//linux_tuning/Sysctl::Value[net.core.rmem_default] Sysctl[net.core.rmem_default] (err): Failed to retrieve current state of resource: No ability to determine if sysctl exists
//linux_tuning/Sysctl::Value[net.core.rmem_default]/Exec[exec_sysct