Open athreyavc1 opened 7 years ago
Checked with previous versions of chef client 13.x same error
Same here. Did you managed to resolve the issue?
I made the cookbook working with CentOS 7, it is certainly not a good fix, just that it is working. I am just using this cookbook deploy clients.
changed resource api_call.rb in providers to
action :call do
Chef::Zabbix.with_connection(new_resource.server_connection) do |connection|
connection.query(
:api_method => new_resource.method,
:params => new_resource.parameters
)
end
new_resource.updated_by_last_action(true)
end
def load_current_resource
run_context.include_recipe 'zabbix::_providers_common'
require 'zabbixapi'
end
def validate_parameters(parameters)
Chef::Log.error("#{parameter} isn't an Hash") unless parameters.is_a?(Hash)
end
Changed resources/api_call.rb to
actions :call
default_action :call
attribute :server_connection, :kind_of => Hash, :required => true
attribute :api_method, :kind_of => [String, Symbol], :required => true
attribute :parameters, :kind_of => Hash, :required => true
Also in templates and many places attributes are called like,
node.zabbix.attribute_value
This resulted in failure for me on chef client 13.x
changed this to
node['zabbix']['attribute_value']
Now the chef converge is working for me.
Hi chef-client -v Chef: 13.2.20
Chef Server version is 12.15.6.