bdangit/chef-influxdb

Add json-write-enabled to https section in config

Closed this issue · 3 comments

Hello,

Please add json-write-enabled to config file for get ability to use old method write path.
I known that it's a deprecated functionality but it's official option in 0.11 version (influxdata/influxdb#5512).

Thanks.

hey @cyberflow

You should be able to just add in the setting into node attributes and as long as you use influxdb_config which is in the default.rb, it will regenerate the config as desired.

node.default['influxdb']['config']['http'] = {
  'enabled' => true,
  'bind-address' => ':8086',
  'auth-enabled' => false,
  'log-enabled' => true,
  'write-tracing' => false,
  'pprof-enabled' => false,
  'https-enabled' => false,
  'https-certificate' => node['influxdb']['ssl_cert_file_path'],
  'json-write-enabled' => true
}
include_recipe 'influxdb::default'

note: need to specify existing config since attributes at same level don't exactly merge.

this will work also

node.override['influxdb']['config']['http'] = {
  'json-write-enabled' => true
}
include_recipe 'influxdb::default'

Thanks.