add a profile.d script to add bin_dir to path

This commit is contained in:
Gilou
2018-10-10 17:49:33 +02:00
parent 809faa4734
commit f2c13abe9c
3 changed files with 16 additions and 0 deletions

View File

@@ -5,6 +5,18 @@
{%- if postgres.use_upstream_repo == true -%}
{%- if postgres.add_path -%}
postgresql-profile:
file.managed:
- name: /etc/profile.d/postgres.sh
- user: root
- group: root
- mode: 644
- template: jinja
- source: salt://postgres/templates/postgres.sh.j2
- defaults:
bin_dir: {{ postgres.bin_dir }}
{%- endif %}
# Add upstream repository for your distro
postgresql-repo:
pkgrepo.managed: