---
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
### POSTGRESQL
postgres:
+ # Centos-7 and Ubuntu-18.04's postgres packages are too old, so we need to force using upstream's
+ # This is not required in Debian's family as they already ship with PG +11
+ {%- if salt['grains.get']('osfinger') in ['Ubuntu-18.04', 'CentOS Linux-7'] %}
+ use_upstream_repo: true
+ version: '12'
+
+ {%- if salt['grains.get']('osfinger') == 'CentOS Linux-7' %}
+ pkgs_deps:
+ - libicu
+ - libxslt
+ - systemd-sysv
+ pkgs_extra:
+ - postgresql12-contrib
+
+ {%- endif %}
+
+ {%- else %}
use_upstream_repo: false
pkgs_extra:
- postgresql-contrib
+ {%- endif %}
postgresconf: |-
listen_addresses = '*' # listen on all interfaces
#ssl = on