Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins constantly try to install #17

Open
minorOffense opened this issue Dec 4, 2017 · 6 comments
Open

Plugins constantly try to install #17

minorOffense opened this issue Dec 4, 2017 · 6 comments
Labels

Comments

@minorOffense
Copy link

Bug Report

  • Module version: 6.0.0
  • Puppet version: 5.3.3
  • OS and version: Centos 7

Bug description

Expected behavior: Install kibana plugin once (e.g. wazuh)

Observed behavior: Constantly tries to reinstall the plugin on every puppet run even if I set a version. I'm not sure if it's an issue with the plugin itself or with the puppet module.

Example manifest:

  class { 'kibana':
    manage_repo => false,
    ensure => latest,
    config => {
      'server.host' => '0.0.0.0',
      'elasticsearch.url' => 'http://localhost:9200',
      'server.port' => '5601',
    },
    require => [Class['java'], Class['elastic_stack::repo']],
  } 

  kibana_plugin { 'wazuhapp':
    url => 'http://packages.wazuh.com/wazuhapp/wazuhapp.zip',
    version => '2.1.1',
    ensure => 'present',
  }

Puppet run logs:

Error: /Stage[main]/Coldfront::Profile::Elk/Kibana_plugin[wazuhapp]: Could not evaluate: Found previous install attempt. Deleting...
@tylerjl
Copy link
Contributor

tylerjl commented Dec 4, 2017

@minorOffense I see that the app is installed under the wazuh directory. If you change

kibana_plugin { 'wazuhapp' :

to

kibana_plugin { 'wazuh' :

Does that change anything?

@tylerjl tylerjl added the triage label Dec 4, 2017
@minorOffense
Copy link
Author

minorOffense commented Dec 7, 2017 via email

@minorOffense
Copy link
Author

minorOffense commented Dec 11, 2017 via email

@minorOffense
Copy link
Author

Alright so I've tried to update to 6.1.0 and installed the plugin fresh and I still get the same error message.

Is there somewhere on the disk I can check for the plugin files? I can try to clear them out manually and run puppet again a few times to see if something's just stuck somehow.

@tylerjl
Copy link
Contributor

tylerjl commented Dec 19, 2017

The module just references the files in /usr/share/kibana/plugins. For context, the module looks for all plugin names in that directory, and if a plugin in the manifest isn't in that directory, it'll try and install it. The module provider uses the pre-existing /usr/share/kibana/bin/kibana-plugin command to install and remove plugins, so you can also use it to list plugins/remove/install to see what the behavior is.

@elfranne
Copy link

I ran into the same issue and the name of the plugin should be exactly the same as in /usr/share/kibana/plugins.

I was using a plugin named kibana-enhanced-table that got installed as enhancedTable. And yes it is case sensitive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants