ng.install: subscribe to repo only if install_from_repo variable is set to true
This commit is contained in:
parent
b068bc6a9d
commit
1c1d338359
@ -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' %}
|
||||||
|
Loading…
Reference in New Issue
Block a user