Updated alternatives solution

This commit is contained in:
noelmcloughlin
2018-03-31 21:56:58 +01:00
parent 43b51148fe
commit cc30fbb903
4 changed files with 23 additions and 4 deletions

View File

@@ -27,8 +27,9 @@ postgresql-client-libs:
{%- for bin in postgres.client_bins %}
{%- set path = salt['file.join'](postgres.bin_dir, bin) %}
{{ bin }}:
postgresql-{{ bin }}-altinstall:
alternatives.install:
- name: {{ bin }}
- link: {{ salt['file.join']('/usr/bin', bin) }}
- path: {{ path }}
- priority: {{ postgres.linux.altpriority }}