Theo Chatzimichos fff352
{% set repositories = salt['pillar.get']('zypper:repositories', {}) %}
Theo Chatzimichos fff352
Theo Chatzimichos fff352
{% for repo, data in repositories.items() %}
Theo Chatzimichos fff352
{{ repo }}:
Theo Chatzimichos fff352
  pkgrepo.managed:
Theo Chatzimichos fff352
    - baseurl: {{ data.baseurl }}
218c26
    {% if data.has_key('priority') %}
Theo Chatzimichos fff352
    - priority: {{ data.priority }}
218c26
    {% endif %}
218c26
    {% if data.has_key('refresh') %}
Theo Chatzimichos fff352
    - refresh: {{ data.refresh }}
218c26
    {% endif %}
218c26
    {% if data.has_key('gpgcheck') %}
Theo Chatzimichos 225ce3
    - gpgcheck: {{ data.gpgcheck }}
218c26
    {% endif %}
218c26
    {% if data.has_key('key_url') %}
Theo Chatzimichos 225ce3
    - key_url: {{ data.key_url }}
218c26
    {% endif %}
Theo Chatzimichos fff352
{% endfor %}