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

Fails to upgrade zabbix-agent if zabbix_version is changed #398

Closed
bastelfreak opened this issue Jun 5, 2017 · 1 comment · Fixed by #399
Closed

Fails to upgrade zabbix-agent if zabbix_version is changed #398

bastelfreak opened this issue Jun 5, 2017 · 1 comment · Fixed by #399
Assignees
Labels
bug Something isn't working

Comments

@bastelfreak
Copy link
Member

bastelfreak commented Jun 5, 2017

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.10.1
  • Ruby: 2.4.1
  • Distribution: CentOS
  • Module version: master branch

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

Execute this:

class{'zabbix-agent':
  zabbix_version => '2.4'
}

Than do an upgrade like this:

class{'zabbix-agent':
  zabbix_version => '3.2'
}

What are you seeing

zabbix not beeing updated

What behaviour did you expect instead

zabbix updated to the specified version

Output log

Any additional information you'd like to impart

The package zabbix-agent will never be upgraded since the default behaviour of the package resource is present, not latest: https://github.com/voxpupuli/puppet-zabbix/blob/master/manifests/params.pp#L71

@alexjfisher
Copy link
Member

I guess that parameter isn't meant to specify the package version, but is used elsewhere for generating compatible configuration for example? Maybe add a parameter zabbix_package_version that can default to 'present'?

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

Successfully merging a pull request may close this issue.

2 participants