Merge pull request #94 from msciciel/msciciel

subscribe to repo only if install_from_repo variable is set to true
This commit is contained in:
puneet kandhari 2015-08-20 05:28:37 -05:00
commit 92ac29b872

View File

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