-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Fix rpm key handling + changing default values depending on zabbix version #399
Conversation
zabbix introduced one new key for 3.2 releases, but that one is currently only used in the main repo. Noticed this by doing acceptance tests \o/
This is needed to allow upgrades after a changed zabbix_version parameter. In general this is a safe option, since zabbix only pushes patch releases into the same repository.
manifests/params.pp
Outdated
@@ -68,7 +68,7 @@ | |||
} | |||
|
|||
# Zabbix overall params. Is used by all components. | |||
$zabbix_package_state = 'present' | |||
$zabbix_package_state = 'latest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is a good idea. Nothing will automatically bump zabbix_version when updated packages get installed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is for the use case that somebody runs zabbix 3.0 or 2.4 and wants to update to 3.2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you should never do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, but this would then just happen whilst zabbix_version would still say 2.4 or whatever. Incompatible configuration would then be applied. I think you need a separate parameter for package_version.
637b507
to
e17872e
Compare
We now do proper acceptance tests for zabbix-agent. We first install the oldest, but still supported, version 2.4. After that we upgrade it to the newest version, 3.2.
this is a really really nasty bug. A few of the default values we provide depend on the zabbix version. Their default value is different based on the zabbix version. We deal with this in the params.pp, but that codeblock is always ignored if you provide a zabbix version by yourself. This is now fixed and proven to work by acceptance tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
These are multiple bugs that I found while doing acceptance testing. The implementation is described in the individual commit messages. This fixes #398 and #397 and is based on the work from #396 and #382