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

Support RedHat Family #35

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Support RedHat Family #35

wants to merge 7 commits into from

Conversation

Poil
Copy link

@Poil Poil commented Nov 27, 2018

Support RedHat Family

@@ -1,6 +1,9 @@

{%- if pillar.grafana is defined %}
include:
{%- if grains['os_family'] == 'RedHat' %}
- grafana.repo.redhat
Copy link
Member

Choose a reason for hiding this comment

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

You should not setup repositories in formulas directly.
Repositories should be controlled by pillar and enforced by linux.system.repo state.
The reasoning is that one can use any repository to provide grafana package (eg. custom mirror, etc.) not only upstream one.

@Poil
Copy link
Author

Poil commented Nov 28, 2018

Hi,

In most of the formulas I can find on salt-formulas, by default the official repository of the software/middleware is configured but you can disable it or change it via pillar. (MySQL, Nginx, Epel, Rundeck, Foreman, Varnish)

So I propose to add grafana.manage_repo to manage or not the official grafana repository. What do you think about this ?

Best regards

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.

2 participants