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

Add missing ordering relationships #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

theosotr
Copy link

@theosotr theosotr commented Feb 1, 2019

This pull request adds missing ordering relationships between Package['syslog-ng'] and its associated files.

Without those missing ordering relationships, the code is unstable because configuration should always be applied after installation of the package.

@faxm0dem
Copy link
Member

faxm0dem commented Feb 6, 2019

thanks for this patch, but I want to minimize package handling anyway : there is the syslog_ng module for that. I will probably require that module at some point. Your patch fails when disabling package management also.

manifests/init.pp Show resolved Hide resolved
@smortex smortex requested a review from a team as a code owner January 13, 2025 20:35
@smortex smortex self-requested a review January 13, 2025 20:38
Copy link
Collaborator

@smortex smortex left a comment

Choose a reason for hiding this comment

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

Dang, I did not see you pushed a fix! That was a while ago, but the change may still make sense. I rebased your fix on top of the master branch so that CI is run against it (we added CI to the project 😉), to ensure it does not break something (CentOS failures are expected and can be ignored. #49 will silence them).

It seems to be fine, so LGTM!

What do you think @faxm0dem ?

@faxm0dem
Copy link
Member

My initial remark can be rewritten this way : should we require the package, or the puppet module ?

@smortex
Copy link
Collaborator

smortex commented Jan 15, 2025

I like it when packages and services are isolated in a dedicated class (e.g. syslog_ng::package, syslog_ng::service) which allow to have dependencies and notifications the easy way:

Class['syslog_ng::package'] -> Foo['bar'] ~> Class['syslog_ng::service']

But the syslog_ng module currently manage package and service in the main manifest (init.pp), so that would require a new backwards-incomptable change of the module to introduce a backwards-incomptable change in this module. As far as I am concerned, I don't mind doing major version bumps, but some people don't like it. Do you want me to work on this?

@faxm0dem
Copy link
Member

I like the idea very much, but le'ts post-pone this and add it to a like-to-have todo list

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