1
0
Fork 0
mirror of synced 2024-12-22 22:48:57 -05:00

missing default value for manage_repo

This commit is contained in:
Benjamin DUPUIS 2019-06-20 15:18:08 +02:00
parent 40f33c777a
commit ef6b9e5d42
2 changed files with 5 additions and 3 deletions

View file

@ -1,10 +1,10 @@
{%- if pillar.grafana is defined %} {%- if pillar.grafana is defined %}
include: include:
{%- if grafana.manage_repo and grains['os_family'] == 'RedHat' %}
- grafana.repo.redhat
{%- endif %}
{%- if pillar.grafana.server is defined %} {%- if pillar.grafana.server is defined %}
{%- if pillar.grafana.server.manage_repo and grains['os_family'] == 'RedHat' %}
- grafana.repo.redhat
{%- endif %}
- grafana.server - grafana.server
{%- endif %} {%- endif %}
{%- if pillar.grafana.client is defined %} {%- if pillar.grafana.client is defined %}

View file

@ -1,6 +1,7 @@
{%- load_yaml as server_defaults %} {%- load_yaml as server_defaults %}
Debian: Debian:
manage_repo: false
pkgs: pkgs:
- grafana - grafana
service: grafana-server service: grafana-server
@ -51,6 +52,7 @@ Debian:
dashboards: dashboards:
enabled: false enabled: false
RedHat: RedHat:
manage_repo: true
pkgs: pkgs:
- grafana - grafana
service: grafana-server service: grafana-server