[英]Chef: grafana community recipe error
我正在從廚師超市使用以下食譜: https : //supermarket.chef.io/cookbooks/grafana
當我嘗試執行以下代碼時,它崩潰了:
grafana_user 'lechucico' do
user(
name: 'lechucico',
email: 'lechucico@example.com',
password: 'lechu',
isAdmin: true,
organizations: [
{ name: 'Administration', role: 'Admin' },
{ name: 'Marketing', role: 'Admin' }
]
)
action :create
end
該錯誤引發:
Chef::Exceptions::ValidationFailed
==> default: ----------------------------------
==> default: Option user must be a kind of [String]! You passed {"name"=>"lechucico", "email"=>"lechucico@example.com", "password"=>"lechu", "isAdmin"=>true, "organizations"=>[{"name"=>"Administration", "role"=>"Admin"}, {"name"=>"Marketing", "role"=>"Admin"}]}.
==> default:
==> default: Cookbook Trace:
==> default: ---------------
==> default: /var/chef/cache/cookbooks/living-grafana/recipes/default.rb:50:in `block in from_file'
==> default: /var/chef/cache/cookbooks/living-grafana/recipes/default.rb:49:in `from_file'
==> default:
==> default: Relevant File Content:
==> default: ----------------------
==> default: /var/chef/cache/cookbooks/living-grafana/recipes/default.rb:
==> default:
==> default: 43: # )
==> default: 44: # action :update
==> default: 45: #end
==> default: 46:
==> default: 47: grafana_organization 'Marketing'
==> default: 48:
==> default: 49: grafana_user 'lechucico' do
==> default: 50>> user(
==> default: 51: 'name' => 'lechucico',
==> default: 52: 'email' => 'lechucico@example.com',
==> default: 53: 'password' => 'lechu',
==> default: 54: 'isAdmin' => true,
==> default: 55: 'organizations' => [
==> default: 56: { 'name' => 'Administration', 'role' => 'Admin' },
==> default: 57: { 'name' => 'Marketing', 'role' => 'Admin' }
==> default: 58: ]
==> default: 59: )
==> default:
==> default: Platform:
==> default: ---------
==> default: x86_64-linux
為什么這不起作用?
一些信息鏈接:
這是因為盡管請求請求已合並到主服務器中,但主服務器中沒有將代碼發布給超級市場。
根據對此問題的評論,菜譜的所有權可能會轉移到sous-chef組。
如果您依賴於此最新代碼,則應從git下載它,更改其版本並推送到您的Chef服務器。
您可能希望在http://community-slack.chef.io/上加入Slack#sous-chefs頻道,以獲取有關接管過程的更多信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.