Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
adding extra_config attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dvinograd authored and Ramez Hanna committed Aug 2, 2017
1 parent 01de8d6 commit d1ae249
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
3 changes: 3 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@
#<> The kibana 4 default application on load
default['kibana']['defaultapp'] = 'discover'

# Extra config options for kibana.yml (key: value)
default['kibana']['extra_config'] = {}

# Logging options. Logs to stdout by default.
default['kibana']['log_to_file'] = false
default['kibana']['logfile'] = "#{node['kibana']['base_dir']}/kibana.log"
Expand Down
3 changes: 2 additions & 1 deletion recipes/kibana4.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
es_port: node['kibana']['elasticsearch']['port'],
index: node['kibana']['index'],
defaultapp: node['kibana']['defaultapp'],
logging_option: node['kibana']['logging_option']
logging_option: node['kibana']['logging_option'],
extra_config: node['kibana']['extra_config']
)
notifies :restart, 'service[kibana]'
end
Expand Down
3 changes: 2 additions & 1 deletion recipes/kibana5.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
es_port: node['kibana']['elasticsearch']['port'],
index: node['kibana']['index'],
defaultapp: node['kibana']['defaultapp'],
logging_option: node['kibana']['logging_option']
logging_option: node['kibana']['logging_option'],
extra_config: node['kibana']['extra_config']
)
notifies :restart, 'service[kibana]'
end
Expand Down
6 changes: 6 additions & 0 deletions templates/default/kibana4.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,9 @@ bundled_plugin_ids:
- plugins/table_vis/index
- plugins/vis_types/index
- plugins/visualize/index


# Extra config
<% @extra_config.each do |k,v| %>
<%= k %>: <%= v %>
<% end %>
17 changes: 4 additions & 13 deletions templates/default/kibana5.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -69,16 +69,7 @@ elasticsearch.ssl.verify: true
# logging.dest: ./kibana.log
<%= @logging_option -%>


# Plugins that are included in the build, and no longer found in the plugins/ folder
bundled_plugin_ids:
- plugins/dashboard/index
- plugins/discover/index
- plugins/doc/index
- plugins/kibana/index
- plugins/markdown_vis/index
- plugins/metric_vis/index
- plugins/settings/index
- plugins/table_vis/index
- plugins/vis_types/index
- plugins/visualize/index
# Extra config
<% @extra_config.each do |k,v| %>
<%= k %>: <%= v %>
<% end %>

0 comments on commit d1ae249

Please sign in to comment.