簡體   English   中英

安裝時石墨p錯誤

[英]graphite puppet error while installation

使用p安裝石墨服務器時出現以下錯誤

為石墨安裝的pet模塊

puppet module install dwerder-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)

您將graphite.pp文件放在哪里? 這是測試Puppetlabs推薦的模塊的方法。

如果您的人偶模塊是/ etc / puppet / modules,則在其下創建tests文件夾,並創建graphite.pp ,然后在其中添加內容:

include graphite

手動應用更改時,請運行以下命令:

cd /etc/puppet/modules/tests
puppet apply --modulepath=/etc/puppet/modules graphite.pp

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM