使用puppet安装石墨服务器时出现以下错误
为石墨安装的木偶模块
puppet module install dwerder-graphite这是graphite.pp的内容
cat graphite.pp 输出
class {'graphite':
}这是命令
puppet apply graphite.pp我收到的错误:
warning: Scope(Class[Graphite::Params]): Could not look up qualified variable 'graphite::gr_web_group'; class graphite has not been evaluated at /etc/puppet/modules/graphite/manifests/params.pp:97
warning: Scope(Class[Graphite::Params]): Could not look up qualified variable 'graphite::gr_web_group'; class graphite has not been evaluated at /etc/puppet/modules/graphite/manifests/params.pp:97
warning: Scope(Class[Graphite::Params]): Could not look up qualified variable 'graphite::gr_web_user'; class graphite has not been evaluated at /etc/puppet/modules/graphite/manifests/params.pp:103
warning: Scope(Class[Graphite::Params]): Could not look up qualified variable 'graphite::gr_web_user'; class graphite has not been evaluated at /etc/puppet/modules/graphite/manifests/params.pp:103
Failed to parse template graphite/opt/graphite/conf/carbon.conf.erb:
Filepath: /usr/lib/ruby/site_ruby/1.8/puppet/parser/scope.rb
Line: 459
Detail: undefined method `[]' for #<Puppet::Parser::Scope:0x7f82caef1e98>
at /etc/puppet/modules/graphite/manifests/config.pp:171 on node test我在RHEL上运行
cat /etc/redhat-release
Red Hat Enterprise Linux Workstation release 6.4 (Santiago)发布于 2015-01-10 03:25:17
你把文件graphite.pp放在哪里?以下是测试Puppetlabs推荐的模块的方法。
如果您的木偶模块是/etc/ puppet / modules,那么在它下面创建测试文件夹,并创建graphite.pp,然后在其中添加内容:
include graphite手动应用更改时,请运行以下命令:
cd /etc/puppet/modules/tests
puppet apply --modulepath=/etc/puppet/modules graphite.pphttps://stackoverflow.com/questions/27856771
复制相似问题