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

Fixes #27552 - Fix journald logging #531

Merged
merged 1 commit into from
Aug 9, 2019
Merged

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 8, 2019

fde8d9b attempted to implement installing foreman-proxy-journald when the logging was set to JOURNAL. The check was comparing JOURNAL to JOURNALD.

This patch corrects it and adds both unit and acceptance tests.

fde8d9b attempted to implement
installing foreman-proxy-journald when the logging was set to JOURNAL.
The check was comparing JOURNAL to JOURNALD.

This patch corrects it and adds both unit and acceptance tests.
@ekohl
Copy link
Member Author

ekohl commented Aug 9, 2019

💚 now

package { 'foreman-proxy-journald':
ensure => installed,
}
if $foreman_proxy::repo {
Foreman::Repos['foreman_proxy'] -> Package['foreman-proxy-journald']
}
Copy link
Member

Choose a reason for hiding this comment

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

This could also be

Foreman::Repos<| title == 'foreman_proxy' |> -> Package['foreman-proxy-journald']

and thus avoid the if. It could also be Foreman::Repos <| |> -> …

Whether this is more readable or not, I don't know :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I also considered introducing a tag to collect on (https://github.com/theforeman/puppet-foreman/blob/a14059fdcb7701336396a570def254588e7f955e/manifests/compute/ovirt.pp#L12) but since this may need a cherry pick I decided to keep this PR simple.

@ekohl ekohl merged commit ecaaa16 into theforeman:master Aug 9, 2019
@ekohl ekohl added the Bug label Aug 9, 2019
@ekohl ekohl deleted the fix-journald branch November 24, 2019 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants