1
0
Fork 0
mirror of synced 2024-12-22 14:41:06 -05:00

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

Use get function to check if a "role" is enabled
This commit is contained in:
pasquier-s 2016-11-28 15:02:18 +01:00 committed by GitHub
commit 7e07c93f36
2 changed files with 2 additions and 2 deletions

View file

@ -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:

View file

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