Skip to content

Conversation

@Poil
Copy link

@Poil Poil commented Nov 27, 2018

Support RedHat Family

{%- 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