使用/var/lib/puppet/.puppet/作为默认configuration目录的Puppet

我用puppet 3.0.2运行一个CentOS 6盒子。
puppet服务器上的/etc/puppet/manifests/site.pp似乎没有做任何事情,所以我跑了:

木偶大师 – 没有守护进程 – 日志控制台 – verbose –debug

我得到以下几点:

debugging:使用设置:添加文件资源'reportdir':'File [/var/lib/puppet/.puppet/var/reports] {:ensure =>:directory,:backup => false,:loglevel =>: :links =>:follow,:mode =>“750”,:path =>“/ var / lib / puppet / .puppet / var / reports”}'

debugging:使用设置:添加文件资源'manifestdir':'File [/var/lib/puppet/.puppet/manifests] {:ensure =>:directory,:backup => false,:loglevel =>:debug,:links =>:follow,:path =>“/ var / lib / puppet / .puppet / manifests”}'

等等

它似乎并没有使用/ etc / puppet。
这是正常的吗?
我如何使它看起来/ etc / puppet下?

根据Bug#16637,这是预期的行为。 在命令行上运行时(作为非root用户),您需要传递–confdir参数来覆盖〜/ .puppet / puppet.conf的默认位置,例如:

 puppet master --confdir /etc/puppet --no-daemonize --logdest console --verbose --debug 

如果你已经更新到Puppet 3,并且已经configuration了Puppet Master作为非root用户在Passenger中运行,你还需要更新你的config.ru文件来提供这些参数,例如:

 # Rack applications typically don't start as root. Set --confdir and --vardir # to prevent reading configuration from ~puppet/.puppet/puppet.conf and writing # to ~puppet/.puppet ARGV << "--confdir" << "/etc/puppet" ARGV << "--vardir" << "/var/lib/puppet" 

尝试使用--confdir选项运行puppet。 例如:

 puppet master --confdir /etc/puppet