Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.35 KB

File metadata and controls

56 lines (43 loc) · 1.35 KB

Migration

This release removes the legacy recipe and attribute public API. Use the zabbix_agent custom resource in your wrapper cookbooks instead.

Before

node.default['zabbix']['agent']['conf']['Server'] = 'zabbix.example.com'
node.default['zabbix']['agent']['conf']['ServerActive'] = 'zabbix.example.com'
include_recipe 'zabbix-agent'

After

zabbix_agent 'default' do
  config(
    'Server' => 'zabbix.example.com',
    'ServerActive' => 'zabbix.example.com'
  )
  action %i(create start)
end

Install Methods

The old node['zabbix']['agent']['install_method'] attribute is now the install_method property:

zabbix_agent 'source' do
  install_method 'source'
  version '7.0.26'
end

Supported 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.

Configuration

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