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

Clean up preinstall handling and use modern facts #335

Merged
merged 4 commits into from
Nov 29, 2019

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Nov 28, 2019

No description provided.

This treats the entire Red Hat OS family equal.

For apt handling the before is cleaned up since the apt::update
dependency is defined within apt::source and apt::ppa while the package
is handled because init.pp does preinstall before install.
@bastelfreak bastelfreak merged commit 7280e05 into voxpupuli:master Nov 29, 2019
@ekohl ekohl deleted the modulesync branch November 29, 2019 10:15
@@ -3,41 +3,22 @@
# @api private
class redis::preinstall {
if $redis::manage_repo {
case $::operatingsystem {
'RedHat', 'CentOS', 'Scientific', 'OEL', 'Amazon': {
if $facts['os']['family'] == 'RedHat' {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer that the case statement is kept, so that it can have a default clause that fails instead of silently ignoring it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I'll split it up in a different PR.

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

Successfully merging this pull request may close these issues.

3 participants