Browse Source

Merge pull request #94 from msciciel/msciciel

subscribe to repo only if install_from_repo variable is set to true
susefix
puneet kandhari 9 years ago
parent
commit
92ac29b872
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      nginx/ng/install.sls

+ 4
- 0
nginx/ng/install.sls View File



{% 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' %}

Loading…
Cancel
Save