Blob Blame History Raw
{% set zypp_conf = salt['pillar.get']('zypper:config:zypp_conf', {}) %}
{% set zypper_conf = salt['pillar.get']('zypper:config:zypper_conf', {}) %}

{% if zypp_conf %}
/etc/zypp/zypp.conf:
  ini.options_present:
    - sections:
        {% for section, data in zypp_conf.iteritems() %}
        {{ section }}:
          {% for config, value in data.iteritems() %}
          {{ config }}: '{{ value }}'
          {% endfor %}
        {% endfor %}
{% endif %}

{% if zypper_conf %}
/etc/zypp/zypper.conf:
  ini.options_present:
    - sections:
        {% for section, data in zypper_conf.iteritems() %}
        {{ section }}:
          {% for config, value in data.iteritems() %}
          {{ config }}: '{{ value }}'
          {% endfor %}
        {% endfor %}
{% endif %}