diff --git a/nginx/ng/install.sls b/nginx/ng/install.sls index 99a84dd..01c164d 100644 --- a/nginx/ng/install.sls +++ b/nginx/ng/install.sls @@ -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' %}