anuriq / chef-kibana5

Chef cookbook for installing Kibana 5.x.x
https://supermarket.chef.io/cookbooks/kibana5
Apache License 2.0
5 stars 15 forks source link

Specify source kibana.yml.erb as an option #22

Closed lukyanetsv closed 6 years ago

lukyanetsv commented 6 years ago

Hi, can you add option to choose cookbook source ? I want to override it in my lwrp cookbook. Like this:

default['kibana5']['config']['config_template_cookbook'] = 'kibana5'
 template node['kibana5']['config_file'] do
    cookbook node['kibana5']['config']['config_template_cookbook']
    source 'kibana.yml.erb'
    owner svc_user
    group svc_group
    mode '0644'
    variables config: config
    notifies :restart, "service[#{new_resource.svc_name}]"
  end

Because many options in kibana.yml.erb are outdated and as a result kibana.yml not properly rendered:

elasticsearch.ssl.cert => elasticsearch.ssl.certificate
elasticsearch.ssl.ca => elasticsearch.ssl.certificateAuthorities
elasticsearch.ssl.verify => elasticsearch.ssl.verificationMode

and so on.

Thanks!

anuriq commented 6 years ago

See version 1.3.1 with merged feature https://github.com/anuriq/chef-kibana5/pull/23

lukyanetsv commented 6 years ago

Thanks!