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

no check for manage_repo #1

Closed
m0n0lith opened this issue Mar 10, 2017 · 2 comments
Closed

no check for manage_repo #1

m0n0lith opened this issue Mar 10, 2017 · 2 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@m0n0lith
Copy link

Bug Report

  • Module version: 0.1.0
  • Puppet version: 4.9.2
  • OS and version: Centos 7.3.1611

Bug description

Expected behavior:
Do not install Elastic.co kibana repo. As I have a local copy of the Elastic repo.

Observed behavior:
Installs Kibana repo even when $manage_repo is set to 'false'.

Example manifest:
class { '::kibana': include profile::yum::elk include profile::nginx manage_repo => false, ensure => $profile::kibana::base::kibana_version, config => { 'kibana.defaultAppId' => $profile::kibana::base::kibana_defaultappid, 'elasticsearch.requestTimeout' => $profile::kibana::base::kibana_reqtime, } } kibana_plugin { 'x-pack': url => "http://katello01.infra.aza.nu/pulp/isos/Default_Organization-ELK-xpack/x-pack-${profile::kibana::base::kibana_version}.zip", }

Puppet run logs:
puppet-agent[2223]: (/Stage[main]/Kibana::Install/Yumrepo[kibana]/ensure) created
puppet-agent[2223]: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install tmux' returned 1: One of the configured repositories failed (Elastic 5.x repository),
puppet-agent[2223]: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install tmux' returned 1: One of the configured repositories failed (Elastic 5.x repository),

Info:
Would like to say that I do not find any check in install.pp towards if manage_repo is true or not. And seems to have the Elastic.co URL added anyway.

@tylerjl
Copy link
Contributor

tylerjl commented Mar 11, 2017

You're absolutely right, I completely forgot to handle the class parameter in the install class. Thank you so much for the report! I'll fix it.

@tylerjl tylerjl added the bug Something isn't working label Mar 11, 2017
@tylerjl tylerjl self-assigned this Mar 11, 2017
@tylerjl tylerjl added this to the Next Release milestone Mar 11, 2017
@tylerjl
Copy link
Contributor

tylerjl commented Mar 11, 2017

Resolved (and tests added) in ee7c394. Will be in the next release.

@tylerjl tylerjl closed this as completed Mar 11, 2017
@tylerjl tylerjl modified the milestones: 0.1.1, Next Release Mar 17, 2017
tylerjl pushed a commit that referenced this issue Apr 26, 2017
Various 3.8 tests and fixes
cegeka-jenkins pushed a commit to cegeka/puppet-kibana that referenced this issue Nov 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants