ng.install: subscribe to repo only if install_from_repo variable is set to true

This commit is contained in:
Krzysztof Pawłowski 2015-08-19 16:59:04 +02:00
parent b068bc6a9d
commit 1c1d338359

View File

@ -51,7 +51,12 @@ nginx_zypp_repo:
{% if salt['grains.get']('os_family') == 'RedHat' %} {% if salt['grains.get']('os_family') == 'RedHat' %}
nginx_yum_repo: nginx_yum_repo:
pkgrepo.managed: pkgrepo:
{%- if nginx.install_from_repo %}
- managed
{%- else %}
- absent
{%- endif %}
- name: nginx - name: nginx
- humanname: nginx repo - humanname: nginx repo
{%- if salt['grains.get']('os') == 'CentOS' %} {%- if salt['grains.get']('os') == 'CentOS' %}