Browse Source

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

susefix
Krzysztof Pawłowski 9 years ago
parent
commit
1c1d338359
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      nginx/ng/install.sls

+ 6
- 1
nginx/ng/install.sls View File

@@ -51,7 +51,12 @@ nginx_zypp_repo:

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

Loading…
Cancel
Save