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

Error when package_name is customized #41

Closed
couloum opened this issue Oct 2, 2020 · 2 comments
Closed

Error when package_name is customized #41

couloum opened this issue Oct 2, 2020 · 2 comments

Comments

@couloum
Copy link

couloum commented Oct 2, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 5.3.13
  • Ruby: 2.7
  • Distribution: Ubuntu 20.04
  • Module version: 4.0.0

How to reproduce (e.g Puppet code you use)

  class { 'nrpe':
    package_name => 'nagios-nrpe-server',
  }

  nrpe::plugin { 'check_foobar':
    ensure => present,
    source => 'puppet:///modules/mymodule/check_foobar',
  }

What are you seeing

Puppet agent fail with catalog compilation error.

What behaviour did you expect instead

Puppet agent running correctly.

Output log

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Could not find resource 'Package[nagios-plugins]' in parameter 'require' (file: /etc/puppetlabs/code/environments/production/modules/nrpe/manifests/plugin.pp, line: 18) on node mynode

Any additional information you'd like to impart

I changed package_name as a workarround of issue #35.

The issue seems that nrpe::plugin::package_name does not get the value of nrpe::package_name

@alexjfisher
Copy link
Member

There hasn't been a require on line 18 since version 2.1.1.

require => Package[$package_name],

@couloum
Copy link
Author

couloum commented Oct 5, 2020

Sorry, for the bad issue report. I was indeed running an old version of the module, while I thought I had updated it.
Sorry again for the trouble and thanks for the comment.

@couloum couloum closed this as completed Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants