mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-10 23:01:45 +00:00
fix(repo): check whether pkg_repo is set
This commit is contained in:
parent
750d8aab7a
commit
26b223323f
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue