Map Pillar dicts for PostgreSQL entities to the Salt state arguments

This commit is contained in:
Denys Havrysh
2016-09-09 11:36:26 +03:00
parent dd0be32810
commit 8c4dc07467
6 changed files with 152 additions and 200 deletions

View File

@@ -1,8 +1,8 @@
{% macro ubuntu_block(name, version) %}
{% if salt['pillar.get']('postgres:use_upstream_repo', False) %}
{% set version = salt['pillar.get']('postgres:version', '9.5') %}
{% endif %}
{% if salt['pillar.get']('postgres:use_upstream_repo', False) %}
{% set version = salt['pillar.get']('postgres:version', '9.5') %}
{% endif %}
{{ name }}:
pkg_repo: deb http://apt.postgresql.org/pub/repos/apt/ {{ name }}-pgdg main