fix(repo): check whether pkg_repo is set

This commit is contained in:
Javier Bértoli 2021-02-26 06:53:10 -03:00
parent 750d8aab7a
commit 26b223323f
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ include:
postgresql-client-libs:
pkg.installed:
- pkgs: {{ pkgs | json }}
{%- if postgres.use_upstream_repo == true %}
{%- if 'pkg_repo' in postgres and postgres.use_upstream_repo == true %}
- refresh: True
- require:
- pkgrepo: postgresql-repo

View file

@ -9,7 +9,7 @@ postgresql-python:
{% if postgres.fromrepo %}
- fromrepo: {{ postgres.fromrepo }}
{% endif %}
{% if postgres.use_upstream_repo == true %}
{% if 'pkg_repo' in postgres and postgres.use_upstream_repo == true %}
- refresh: True
- require:
- pkgrepo: postgresql-repo

View file

@ -18,7 +18,7 @@ include:
postgresql-server:
pkg.installed:
- pkgs: {{ pkgs | json }}
{%- if postgres.use_upstream_repo == true %}
{%- if 'pkg_repo' in postgres and postgres.use_upstream_repo == true %}
- refresh: True
- require:
- pkgrepo: postgresql-repo