Merge pull request #14 from thouveng/use-get-with-enabled

Use get function to check if a "role" is enabled
pull/15/head
pasquier-s 6 years ago committed by GitHub
commit 7e07c93f36
  1. 2
      grafana/collector.sls
  2. 2
      grafana/server.sls

@ -1,5 +1,5 @@
{%- from "grafana/map.jinja" import collector with context %}
{%- if collector.enabled %}
{%- if collector.get('enabled', False) %}
grafana_grains_dir:
file.directory:

@ -1,5 +1,5 @@
{%- from "grafana/map.jinja" import server with context %}
{%- if server.enabled %}
{%- if server.get('enabled', False) %}
grafana_packages:
pkg.installed:

Loading…
Cancel
Save