我有一个使用游荡木偶供应的工作环境。现在我在an EC2上设置了一个puppetmaster服务器,其中包含我在vagrant上使用的相同模块,但当我尝试从代理访问它时,我得到了Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class co_gocdserver for ip-172-31-34-78.us-west-2.compute.internal on node ip-172-31-34-78.us-west-2.compute.internal。
/etc/puppet/manifests/site.pp目前看起来就像这样:
node default {
include co_gocdserver
}/etc/puppet/modules/co_gocdserver/manifests/init.pp看起来像这样:
class co_gocdserver {
include gocd::server
file { "ssh":
path => "/var/go/.ssh",
source => "puppet:///modules/co_baseconfig/ssh",
recurse => true,
require => Package["go-server"],
}
}更新:下面是主服务器上的/etc/puppet/puppet.conf:
[main]
# The Puppet log directory.
# The default value is '$vardir/log'.
logdir = /var/log/puppet
# Where Puppet PID files are kept.
# The default value is '$vardir/run'.
rundir = /var/run/puppet
# Where SSL certificates are kept.
# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl
#node_name = facter
#node_name_fact = puppet_node
basemodulepath = /etc/puppet/modules
[master]
basemodulepath = /etc/puppet/modules
[agent]
# The file in which puppetd stores a list of the classes
# associated with the retrieved configuratiion. Can be loaded in
# the separate ``puppet`` executable using the ``--loadclasses``
# option.
# The default value is '$confdir/classes.txt'.
classfile = $vardir/classes.txt
# Where puppetd caches the local configuration. An
# extension indicating the cache format is added automatically.
# The default value is '$confdir/localconfig'.
localconfig = $vardir/localconfig是否引入了任何明显的错误,或者我如何调试它?
发布于 2015-12-17 20:29:48
解决了它。问题是我搞乱了对模块目录的权限,并且puppetserver是以没有读取权限的用户puppet身份运行的。
我怎么会弄乱权限呢?有效的问题。答案很简单:
rm -rf /etc/puppet/modules
ln -s /home/centos/puppet/modules /etc/puppet/modules将此线程作为引用。
https://stackoverflow.com/questions/34331431
复制相似问题