Chef infra 厨师没有拿我当地的食谱

Chef infra 厨师没有拿我当地的食谱,chef-infra,graphite,statsd,grafana,aws-opsworks,Chef Infra,Graphite,Statsd,Grafana,Aws Opsworks,我正在写我的第一套食谱,为StatsD安装grafana 然而,当我做一个inlcude_recipegrafana::default时,我从上游猜到了一个本地烹饪书没有提供的菜谱 我正在使用kitchen.ci进行聚合-厨师运行成功完成 我在这里错过了什么或做错了什么 我的文件夹结构 /cookbooks |- /chef-grafana |-- < folder structure from author of https://github.com/JonathanTron/chef-

我正在写我的第一套食谱,为StatsD安装grafana

然而,当我做一个inlcude_recipegrafana::default时,我从上游猜到了一个本地烹饪书没有提供的菜谱

我正在使用kitchen.ci进行聚合-厨师运行成功完成

我在这里错过了什么或做错了什么

我的文件夹结构

/cookbooks
|- /chef-grafana
|-- < folder structure from author of https://github.com/JonathanTron/chef-grafana - I cloned this repo >
|- /my_statsd_graphite_grafana_cookbook
|-- /recipes
|--- default.rb
|-- /attributes
|-- metadata.rb
|-- Berksfile
伯克斯菲尔

source 'https://supermarket.chef.io'
metadata
cookbook 'apt', git: 'git://github.com/opscode-cookbooks/apt.git'
cookbook 'statsd', git: 'git://github.com/librato/statsd-cookbook.git'
cookbook 'graphite', git: 'git://github.com/hw-cookbooks/graphite.git'
cookbook "grafana", path: "../chef-grafana"
default.rb

include_recipe("apt")

# Solve some deps
install_packages = ["python-pip", "python-dev", "build-essential", "unzip"]
install_packages.each { |install_package|
  package(install_package)
}

# Include statsd recipes
include_recipe("statsd::default")
include_recipe("graphite::packages")
include_recipe("graphite::carbon")

# Include grafana recipes
include_recipe("grafana::default")
我甚至尝试在克隆的chef grafana default.rb配方中执行许多调试日志,但从未调用它们

我错过了什么

非常感谢。

编辑
确保在metadata.rb中填充了name属性,并且没有弄乱~/.berkself/config.json和berkself_路径。

您可以省略::default,只需对默认配方使用include_recipegrafana即可。。我会尝试用一个完全合格的路径来代替一个相对的路径,以确保问题不是由此产生的。您可以尝试将厨房配置为也这样做,以查看它从何处获取食谱。感谢您提供的详细提示。我会试试的。有更新吗?也许需要一个日志输出来完成这个问题?是的,每本食谱都有自己的Berksfile。“我的石墨烹饪书也有它自己的Berksfile文件。”Tensibai将其删除。
include_recipe("apt")

# Solve some deps
install_packages = ["python-pip", "python-dev", "build-essential", "unzip"]
install_packages.each { |install_package|
  package(install_package)
}

# Include statsd recipes
include_recipe("statsd::default")
include_recipe("graphite::packages")
include_recipe("graphite::carbon")

# Include grafana recipes
include_recipe("grafana::default")