我正在尝试使用simple-kibana(https://github.com/jsirex/simple-kibana-cookbook),我已经编写了包装器。简单的kibana依赖于ark& runit。
当我在节点上运行chef时,它失败并出现以下错误:
================================================================================
Recipe Compile Error in /var/cache/chef/cookbooks/ark/attributes/default.rb
================================================================================
NoMethodError
-------------
undefined method `+' for nil:NilClass
Cookbook Trace:
---------------
/var/cache/chef/cookbooks/ark/attributes/default.rb:14:in `from_file'
Relevant File Content:
----------------------
/var/cache/chef/cookbooks/ark/attributes/default.rb:
7: else
8: default['ark']['tar'] = '/bin/tar'
9: end
10:
11: pkgs = %w(libtool autoconf) unless platform_family?('mac_os_x','windows')
12: pkgs += %w(unzip rsync make gcc) unless platform_family?('mac_os_x','windows')
13: pkgs += %w(autogen) unless platform_family?('rhel', 'fedora', 'mac_os_x', 'suse','windows')
14>> pkgs += %w(gtar) if platform?('freebsd')
15:
16: default['ark']['package_dependencies'] = pkgs
17:
任何人都可以帮我解决这个问题。我在6.4岁的
感谢
答案 0 :(得分:1)
freebsd
节点,否则它不会评估第14行。mac_os_x
,此属性文件将因windows
,rhel
,fedora
和suse