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

Respect manage_repo for RedHat family #801

Merged
merged 2 commits into from
Oct 24, 2021
Merged

Respect manage_repo for RedHat family #801

merged 2 commits into from
Oct 24, 2021

Conversation

fraenki
Copy link
Member

@fraenki fraenki commented Oct 12, 2021

Pull Request (PR) description

In #736 the CentOS SCL repo was added by installing centos-release-scl. However, this breaks repository management for folks that have $manage_repo set to false.

This PR ensure that the SCL repo package is only installed when $manage_repo is set to true.

Another approach would be to move the installation of the centos-release-scl package from zabbix::web to zabbix::repo. Let me know what you think.

This Pull Request (PR) fixes the following issues

Having two modules trying to manage the SCL repo leads to all kinds of issues, i.e. duplicate declarations.

@root-expert root-expert added the bug Something isn't working label Oct 12, 2021
manifests/web.pp Outdated Show resolved Hide resolved
@root-expert root-expert changed the title fully respect $manage_repo in zabbix::web Respect manage_repo for RedHat family Oct 12, 2021
@root-expert
Copy link
Member

To be honest that piece of code was probably belonging to zabbix::repo as you said but was added to the wrong place.

If you think you can move it and update the specs please do it, else I'm happy to merge this PR.

manifests/web.pp Outdated Show resolved Hide resolved
@fraenki
Copy link
Member Author

fraenki commented Oct 12, 2021

If you think you can move it and update the specs please do it

@root-expert I've moved it to zabbix::repo. The downside of this is that the SCL repo package also gets installed when zabbix::web is not being used.

Co-authored-by: Christos Papageorgiou <[email protected]>
@root-expert
Copy link
Member

If you think you can move it and update the specs please do it

@root-expert I've moved it to zabbix::repo. The downside of this is that the SCL repo package also gets installed when zabbix::web is not being used.

That seems okay for me

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 this pull request may close these issues.

3 participants