From 7abdb58ac7e06abf6cc750be383b7fc7f02ba405 Mon Sep 17 00:00:00 2001 From: noelmcloughlin Date: Sat, 17 Mar 2018 01:03:10 +0000 Subject: [PATCH] Fix suse alternatives #189 --- postgres/osmap.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/postgres/osmap.yaml b/postgres/osmap.yaml index 71c6344..ccf4aa2 100644 --- a/postgres/osmap.yaml +++ b/postgres/osmap.yaml @@ -124,6 +124,33 @@ Suse: command: /usr/pgsql-{{ repo.version }}/bin/initdb --pgdata='{{ lib_dir }}' test: test -f '{{ lib_dir }}/PG_VERSION' + # Alternatives system + linux: + altpriority: 30 + + # directory containing PostgreSQL client executables + bin_dir: /usr/pgsql-{{ repo.version }}/bin + client_bins: + - pg_archivecleanup + - pg_config + - pg_isready + - pg_receivexlog + - pg_rewind + - pg_test_fsync + - pg_test_timing + - pg_upgrade + - pg_xlogdump + - pgbench + server_bins: + - initdb + - pg_controldata + - pg_ctl + - pg_resetxlog + - postgres + - postgresql{{ release }}-check-db-dir + - postgresql{{ release }}-setup + - postmaster + {% else %} pkg: postgresql-server