diff --git a/pillar/common.sls b/pillar/common.sls index edad313..2010a9f 100644 --- a/pillar/common.sls +++ b/pillar/common.sls @@ -128,6 +128,7 @@ sudoers: nagios: - 'ALL=(ALL) NOPASSWD: /usr/sbin/zypp-refresh,/usr/bin/zypper ref,/usr/bin/zypper sl,/usr/bin/zypper --xmlout --non-interactive list-updates -t package -t patch' zypper: - zypp_conf: - main: - solver.onlyRequires: 'true' + config: + zypp_conf: + main: + solver.onlyRequires: 'true' diff --git a/salt/profile/zypper/config.sls b/salt/profile/zypper/config.sls index 457ce84..7561539 100644 --- a/salt/profile/zypper/config.sls +++ b/salt/profile/zypper/config.sls @@ -1,5 +1,5 @@ -{% set zypp_conf = salt['pillar.get']('zypper:zypp_conf', {}) %} -{% set zypper_conf = salt['pillar.get']('zypper:zypper_conf', {}) %} +{% 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: @@ -8,7 +8,7 @@ {% for section, data in zypp_conf.iteritems() %} {{ section }}: {% for config, value in data.iteritems() %} - {{ config }}: {{ value }} + {{ config }}: '{{ value }}' {% endfor %} {% endfor %} {% endif %}