我在运行centos7。我装了木偶。如果我以用户身份编写puppet,就会得到适当的输出。如果我写sudo puppet,我就会得到command not found。
真正奇怪的是,如果我做了sudo su -并变成根用户,然后编写puppet,当我与普通用户一起运行它时,我得到了正常的输出.
[unu@centosmaster puppet]$ puppet
See 'puppet help' for help on available puppet subcommands
[unu@centosmaster puppet]$ sudo puppet
sudo: puppe
mohamed@mohamed:~/Projects/skyrocket$ git status
On branch dev/SMMWEB-36
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: config/puppet
我在启动方面也有问题,下面是我的配置文件。有人能在这个问题上帮我吗?
我正在收到的错误:
[Thu Aug 20 05:25:09 2015] [error] [client 192.168.XXX.XXX] Directory index forbidden by Options directive: /usr/share/puppet-dashboard/public/
下面是我的VirtualHost文件。
# UPDATE THESE PATHS TO SUIT YOUR ENVIRONMENT
#LoadModule passenger_module /var/lib/gems/1.
Puppet Enterprise新手,我遇到了一个为简单代理节点编译目录的问题。主服务器运行在rhel6机器上,代理运行在通过vagrant从主机启动的centos6.5机器上。当我从代理VM运行以下命令时出现问题:
bash-4.1$ sudo puppet agent --waitforcert 60 --test --certname agent.example.com
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: *
我是木偶新手。我应该在/var/save/puppet_hello中使用hellopuppet.pp向hellopuppet.txt写入"Hello Puppet“。当我使用puppet apply hellopuppet.pp执行它时,它显示错误消息Error: Could not parse for environment production: Could not match ‘/var/save/puppet_hellopuppet’: at /var/save/puppet_hello/hellopuppet.pp:2 on node task-server.ec2.int
如果已分发了提供的Nagios木偶检查
我的问题是,如果通过NRPE在本地执行vs,则会得到不同的结果:
[root@nagios-client /]# /usr/lib64/nagios/plugins/check_puppetagent
OK: Puppet was last run 17 minutes and 9 seconds ago
vs
[root@nagios ~]# /usr/lib64/nagios/plugins/check_nrpe -H 192.168.50.121 -c check_puppetagent
WARN: Puppet has never run, no
我的傀儡清单在我的本地漫游机上出了问题。每当我尝试提供我的Vagrant时,我都会收到以下输出,但似乎找不到原因:
Error: undefined method `ref' for nil:NilClass on node vagrant-trusty64.lan
Error: undefined method `ref' for nil:NilClass on node vagrant-trusty64.lan
The following SSH command responded with a non-zero exit status.
Vagrant assumes t
师父:
puppetserver ca list Traceback (most recent call last):
9: from /opt/puppetlabs/server/apps/puppetserver/cli/apps/ca:5:in ''
8: from /opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.8.0/lib/puppetserver/ca/cli.rb:94:in 'run'
7: from /opt/puppetlabs/puppet/lib/ru
我试图解析命令的帮助文件,以获取命令例外的所有参数。
下面是帮助文件中的一些文本:
* --digest:
Set the digest for fingerprinting (defaults to the digest used when
signing the cert). Valid values depends on your openssl and openssl ruby
extension version.
* --debug:
Enable full debugging.
* --help:
Print this help message
* --v
我正在尝试使用Puppet在Ubuntu14.04 x64上部署服务器。
我可以很好地平平傀儡服务器,并且服务器在puppet.conf中被正确设置。傀儡可以连接到主服务器,发送它的密钥,我可以在主服务器上签名并开始运行部署,但是在运行部署时我会看到以下错误:
Error: Could not set 'file' on ensure: getaddrinfo: Name or service not known
Error: Could not set 'file' on ensure: getaddrinfo: Name or service not kno
我正在尝试使用puppet来管理我的/etc/yum.repos.d/CentOS-Base.repo文件。内置的puppet yumrepo资源类型添加了预期的baseurl值,但它将行置于文件中下一个repo的注释之后,更新。
我如何强制木偶格式化更漂亮的基础代码库?理想情况下,我希望puppet将注释过的baseurl条目替换为"#released“后的一行,如下所示。
[base]
name=CentOS-$releasever - Base
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
g
我可以手动运行bundle install并得到一些正常的结果,但是当我让Puppet提供一个Vagrant box时,第二次会发生这种情况(第一次我得到成功的输出)。
[default] Running provisioner: Vagrant::Provisioners::Puppet...
[default] Running Puppet with /tmp/vagrant-puppet/manifests/default.pp...
stdin: is not a tty
/opt/vagrant_ruby/lib/ruby/site_ruby/1.8/rubygems.rb:900: