Giter VIP home page Giter VIP logo

chef-kibana5's People

Contributors

andrew-hopper avatar anuriq avatar gordonbondon avatar kazjote avatar kri5 avatar mburns avatar thekatargit avatar voyager-data avatar yershalom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chef-kibana5's Issues

Adding plugin install provider

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.

Kibana installation failing because of systemd dependency

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

No matchers found

Can you please add matchers?
I wanna add rspec tests but can't.

Thanks in advance!

Cookbook installs kibana version 5.4.1 even though node['kibana5']['version'] is set to something else

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.

kibana5 and ark > 2.2.1

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)

      ================================================================================
      Error executing action create on resource 'user[kibana]'

      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/resources/install.rb

      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:

      Compiled Resource:

      Declared in /var/chef/cache/cookbooks/kibana5/resources/install.rb:43:in `block in class_from_file'

      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

systemd issue, converge failed

  * 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

Missing the ability to disable xpath auth

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'm getting a conflict on systemd

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$```

kibana5_configure doesn't pick up other settings

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'

service[kibana]: Service is not known to chkconfig

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 action enable 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 action restart on resource 'service[kibana]'
        ================================================================================

      Chef::Exceptions::Service

      service[kibana]: No custom command for restart specified and unable to locate the init.d script!

Specify source kibana.yml.erb as an option

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.