Skip to content
Snippets Groups Projects
init.sls 321 B
Newer Older
  • Learn to ignore specific revisions
  • {%- if 'grafana' in salt['pillar.get']('roles', []) %}
    
    skorpy's avatar
    skorpy committed
    include:
      - grafana.grafana
    
    skorpy's avatar
    skorpy committed
    {%- if  pillar.get('grafana', {}).get('frontend', '') == 'nginx' %}
      - grafana.varnish
    {%- endif %}
    
    skorpy's avatar
    skorpy committed
    {%- else %}
    grafana:
      pkgrepo.absent: []
      pkg.purged: []
      file.absent:
        - name: /etc/apt/sources.list.d/grafana.list
    
    skorpy's avatar
    skorpy committed
    {%- endif %}