This release removes the legacy recipe and attribute public API. Use the zabbix_agent custom
resource in your wrapper cookbooks instead.
node.default['zabbix']['agent']['conf']['Server'] = 'zabbix.example.com'
node.default['zabbix']['agent']['conf']['ServerActive'] = 'zabbix.example.com'
include_recipe 'zabbix-agent'zabbix_agent 'default' do
config(
'Server' => 'zabbix.example.com',
'ServerActive' => 'zabbix.example.com'
)
action %i(create start)
endThe old node['zabbix']['agent']['install_method'] attribute is now the install_method property:
zabbix_agent 'source' do
install_method 'source'
version '7.0.26'
endSupported values are package, source, prebuild, chocolatey, and skip.
Package installs use the service supplied by the installed package. Source and prebuilt installs build/extract and configure the agent only; this cookbook does not create or override a system service unit.
The old node['zabbix']['agent']['conf'] hash maps directly to the config property. User
parameters move from node['zabbix']['agent']['user_parameter'] to user_parameters.
zabbix_agent 'default' do
config(
'Server' => '127.0.0.1',
'ListenPort' => '10050'
)
user_parameters ['test.ping,echo 1']
end