Open kalebwalton opened 8 years ago
@kalebwalton , that's why I have to fork this cookbook. For such cases I had developed another way to define these via hash. It still buggy but works: https://github.com/jsirex/collectd-lib-cookbook
collectd_conf 'my-tcpconns' do
plugin 'tcpconns'
conf 'LocalPort' => [80, 443, 25]
end
Probably, someone will want to copy-paste this: https://github.com/jsirex/collectd-lib-cookbook/blob/master/libraries/chef_collectd_config_converter.rb partially
I want to do this:
But for a plugin, the config is always converted into a hash, so it will only turn out 'LocalPort "80"' even if I include the others (or whatever the last one to make it into the hash is).
Is there another way?