anuriq / chef-kibana5 Goto Github PK
View Code? Open in Web Editor NEWChef cookbook for installing Kibana 5.x.x
Home Page: https://supermarket.chef.io/cookbooks/kibana5
License: Apache License 2.0
Chef cookbook for installing Kibana 5.x.x
Home Page: https://supermarket.chef.io/cookbooks/kibana5
License: Apache License 2.0
Hi,
I'll add the install plugin provider.
The issue that I don't have so much time now, but i'll try to do it in the next couple of weeks.
You can put feature tag on this issue.
I am successfully using this cookbook to deploy kibana 6.2.3 ... Great work and thank you!
I have run into a minor issue, according to the documentation, kibana-plugin
needs to be run with the kibana
user ... See: https://www.elastic.co/guide/en/kibana/6.2/_installing_plugins.html#_installing_plugins_with_linux_packages
Error executing action `configure` on resource 'kibana5_configure[kibana]'
NoMethodError
-------------
undefined method `description' for Custom resource systemd_service from cookbook systemd
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/kibana5/resources/configure.rb:34:in `block (2 levels) in class_from_file'
/var/chef/cache/cookbooks/kibana5/resources/configure.rb:33:in `block in class_from_file'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/kibana5/recipes/default.rb
21: kibana5_configure 'kibana' do
22: configuration 'server.port' => node['kibana5']['config']['server.port'],
23: 'server.host' => node['kibana5']['config']['server.host'],
24: 'elasticsearch.url' => node['kibana5']['config']['elasticsearch.url'],
25: 'logging.dest' => node['kibana5']['config']['logging.dest']
26: end
Can you please add matchers?
I wanna add rspec tests but can't.
Thanks in advance!
I saw that the latest version of this cookbook sets the default version to a node attribute, which would seem to allow a user to change the version to be installed by changing that attribute; however, it looks like it doesn't actually have any effect.
In a wrapper cookbook, I set the node['kibana5']['version']
attribute to 5.3.0
but when chef converges the node, kibana version 5.4.1 is installed.
It might be necessary to set the version property of the kibana_install
resource in the default recipe here.
We had ark=v3.1.0 installed on our chef server. When running chef-client we would always receive the error below.
We had to down grade to ark=v2.2.1 and now this installs. Might want to check it out
Recipe: kibana5::default
kibana5_install[kibana] action install[2017-06-19T08:54:18-05:00] INFO: Processing kibana5_install[kibana] action install (kibana5::default line 19)
group[kibana] action create[2017-06-19T08:54:18-05:00] INFO: Processing group[kibana] action create (/var/chef/cache/cookbooks/kibana5/resources/install.rb line 41)
(up to date)
user[kibana] action create[2017-06-19T08:54:18-05:00] INFO: Processing user[kibana] action create (/var/chef/cache/cookbooks/kibana5/resources/install.rb line 43)
create
on resource 'user[kibana]'Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] ----
STDOUT:
STDERR: usermod: user kibana is currently used by process 29479
---- End output of ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] ----
Ran ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] returned 8
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in run_action' /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in
block (2 levels) in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in each' /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in
block in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in converge' /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in
run_action'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block (2 levels) in converge' /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in
each'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in block in converge' /var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in
converge'
43: user new_resource.svc_user do
44: comment 'Kibana User'
45: gid new_resource.svc_group
46: home new_resource.base_dir
47: shell '/bin/bash'
48: system true
49: end
50:
user("kibana") do
action [:create]
supports {:manage_home=>false, :non_unique=>false}
retries 0
retry_delay 2
default_guard_interpreter :default
username "kibana"
comment "Kibana User"
gid 164
home "/opt/kibana"
shell "/bin/bash"
system true
iterations 27855
declared_type :user
cookbook_name "kibana5"
end
[2017-06-19T08:54:18-05:00] INFO: Running queued delayed notifications before re-raising exception
================================================================================
Error executing action `install` on resource 'kibana5_install[kibana]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
user[kibana] (/var/chef/cache/cookbooks/kibana5/resources/install.rb line 43) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '8'
---- Begin output of ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] ----
STDOUT:
STDERR: usermod: user kibana is currently used by process 29479
---- End output of ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] ----
Ran ["usermod", "-c", "Kibana User", "-d", "/opt/kibana", "kibana"] returned 8
Cookbook Trace:
---------------
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
/var/chef/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/kibana5/recipes/default.rb
19: kibana5_install 'kibana'
20:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/kibana5/recipes/default.rb:19:in `from_file'
kibana5_install("kibana") do
action [:install]
retries 0
retry_delay 2
default_guard_interpreter :default
declared_type :kibana5_install
cookbook_name "kibana5"
recipe_name "default"
version "5.4.1"
install_method "release"
base_dir "/opt/kibana"
svc_group "kibana"
svc_user "kibana"
end
* kibana5_configure[kibana] action configure
================================================================================
Error executing action `configure` on resource 'kibana5_configure[kibana]'
================================================================================
NoMethodError
-------------
undefined method `Kibana Backend' for Custom resource systemd_service from cookbook systemd
System Info:
------------
chef_version=13.2.20
platform=ubuntu
platform_version=16.04
ruby=ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
program_name=chef-client worker: ppid=1741;start=16:29:07;
executable=/opt/chef/bin/chef-client
I haven't checked yet ,
but systemd cookbook was updated recently , so it might be the root cause.
https://github.com/nathwill/chef-systemd/releases
We've started adding urls and checksums for MacOS (darwin), but have no code to install them.
Great cookbook! Thanks very much for your recent work also.
Since you're active I figured I would post the most recent issue I've run into.
We're running elastic/kibana behind a vpn and firewall so we run without auth. I need to be able to set
xpack.security.enabled: false
in the kibana.yml
I have systemd 3.2.2 installed, but this cookbook wants 2.0.0.
How can we fix this?
Resolving cookbook dependencies...
Fetching 'wftopenvpn' from source at site-cookbooks/wftopenvpn
Fetching 'wherefor-base' from source at site-cookbooks/wherefor-base
Fetching 'wherefor-elasticsearch' from source at site-cookbooks/wherefor-elasticsearch
Fetching 'wherefor-grafana' from source at site-cookbooks/wherefor-grafana
Fetching 'wherefor-haproxy' from source at site-cookbooks/wherefor-haproxy
Fetching 'wherefor-ldap-auth' from source at site-cookbooks/wherefor-ldap-auth
Fetching 'wherefor-mesos' from source at site-cookbooks/wherefor-mesos
Fetching 'wherefor-mysql' from source at site-cookbooks/wherefor-mysql
Fetching 'wherefor-openldap' from source at site-cookbooks/wherefor-openldap
Fetching 'wherefor-phpweb' from source at site-cookbooks/wherefor-phpweb
Fetching 'wherefor-sensu' from source at site-cookbooks/wherefor-sensu
Fetching 'wherefor-syslog' from source at site-cookbooks/wherefor-syslog
Fetching cookbook index from https://supermarket.chef.io/...
There is a dependency conflict, but the solver could not determine the precise cause in the time allotted.
Unable to find a solution for demands: apt (6.1.4), ark (3.1.0), build-essential (8.0.4), chef-sugar (4.0.0), chef-vault (3.0.0), chef_nginx (6.2.0), compat_resource (12.19.0), cpu (2.0.0), dpkg_autostart (0.2.0), elasticsearch (4.0.0), erlang (5.1.0), grafana (2.2.0), graphite (1.0.4), haproxy (4.6.1), homebrew (4.3.0), hostsfile (3.0.1), java (1.50.0), jenkins (5.0.6), logrotate (2.2.0), mingw (2.0.1), ms_dotnet (4.0.1), mysql (8.5.1), nodejs (5.0.0), ntp (3.5.4), ohai (5.2.1), openldap (3.1.2), openvpn (2.1.0), packagecloud (0.3.0), poise (2.8.1), poise-service (1.5.2), python (1.4.6), rabbitmq (5.4.0), redisio (2.6.1), rsyslog (6.0.4), runit (1.8.0), selinux_policy (2.0.1), sensu (4.1.0), seven_zip (2.0.2), ssh_authorized_keys (0.4.0), sshd (1.3.1), sssd_ldap (4.2.1), sudo (4.0.0), sysctl (0.10.2), systemd (3.2.0), timezone-ii (0.2.0), uchiwa (1.4.0), ulimit (0.4.0), wftopenvpn (0.1.0), wherefor-base (0.1.0), wherefor-elasticsearch (0.1.0), wherefor-grafana (0.1.0), wherefor-haproxy (0.1.0), wherefor-ldap-auth (0.1.0), wherefor-mesos (0.1.0), wherefor-mysql (0.1.0), wherefor-openldap (0.1.0), wherefor-phpweb (0.1.0), wherefor-sensu (0.1.0), wherefor-syslog (0.1.0), windows (3.4.4), yum (3.13.0), yum-epel (0.7.1), yum-erlang_solutions (1.0.3), zypper (0.4.0), kibana5 (~> 1.5.0)
ip-192-168-200-50:wf-corporate-chef lrosenman$```
Hi,
I create a wrapper cookbook named abc-kibana which depends on kibana5(1.6.5).
when I define attributes in abc-kibana as below, the default kibana5 recipe doesn't set the value for kibana.yml as expected. Please help.
abc-kibana/attributes/default.rb
default['kibana5']['config']['elasticsearch.username'] = 'user1'
default['kibana5']['config']['elasticsearch.password'] = 'pw1'
Hi,
I need this feature implemented to work with my production environment.
Thanks,
Catalin
Hi,
I am at a point where kibana is not a service and I could not find its entry inside /etc/init.d
. What should I do to move on? I only need a default installation of kibana.
service[kibana] action enable
* service[kibana]: Service is not known to chkconfig.
================================================================================
Error executing actionenable
on resource 'service[kibana]'
================================================================================Chef::Exceptions::Service ------------------------- service[kibana]: Service is not known to chkconfig. Resource Declaration: --------------------- # In /var/chef/cache/cookbooks/kibana5/resources/configure.rb 66: service new_resource.svc_name do 67: supports start: true, restart: true, stop: true, status: true 68: action [:enable, :start] 69: end 70: end Compiled Resource: ------------------ # Declared in /var/chef/cache/cookbooks/kibana5/resources/configure.rb:66:in `block in class_from_file' service("kibana") do action [:enable, :start] supports {:start=>true, :restart=>true, :stop=>true, :status=>true} retries 0 retry_delay 2 default_guard_interpreter :default service_name "kibana" pattern "kibana" declared_type :service cookbook_name "kibana5" end Platform: --------- x86_64-linux
service[kibana] action restart
- service[kibana]: No custom command for restart specified and unable to locate the init.d script!
================================================================================
Error executing actionrestart
on resource 'service[kibana]'
================================================================================Chef::Exceptions::Service
service[kibana]: No custom command for restart specified and unable to locate the init.d script!
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!
We have urls and checksums for Windows packages but no code to install them.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.