mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-16 09:40:26 +00:00

Move this formula to the new style map.jinja. Still need to sort out RedHat handling, but it's not any worse than it was before (i.e. horribly broken)
14 lines
450 B
Text
14 lines
450 B
Text
{% from "postgres/map.jinja" import postgres with context %}
|
|
|
|
{% if grains['os_family'] == 'Debian' %}
|
|
install-postgresql-repo:
|
|
pkgrepo.managed:
|
|
- humanname: PostgreSQL Official Repository
|
|
- name: {{ postgres.pkg_repo }} {{ postgres.version }}
|
|
- keyid: B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
|
|
- keyserver: keyserver.ubuntu.com
|
|
- file: {{ postgres.pkg_repo_file }}
|
|
- require_in:
|
|
- pkg: {{ postgres.pkg }}
|
|
{% endif %}
|
|
|