mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-15 17:20:25 +00:00
Rename setting to add_profile, add an example to explain it
This commit is contained in:
parent
728dbb64e5
commit
5c094a05ca
3 changed files with 5 additions and 2 deletions
|
@ -8,6 +8,9 @@ postgres:
|
|||
use_upstream_repo: False
|
||||
# Version to install from upstream repository (if upstream_repo: True)
|
||||
version: '10'
|
||||
# Set True to add a file in /etc/profile.d adding the bin dir in $PATH
|
||||
# as packages from upstream put them somewhere like /usr/pgsql-10/bin
|
||||
add_profile: False
|
||||
# If automatic package installation fails, use `fromrepo` to specify the
|
||||
# upstream repo to install packages from [#133, #185] (if upstream_repo: True)
|
||||
fromrepo: 'jessie-pgdg'
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
postgres:
|
||||
use_upstream_repo: True
|
||||
add_path: False # add bin_dir to $PATH, if installed from repos
|
||||
add_profile: False # add bin_dir to $PATH, if installed from repos
|
||||
version: '10'
|
||||
pkg: postgresql
|
||||
pkgs_extra: []
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
{%- if postgres.use_upstream_repo == true -%}
|
||||
|
||||
{%- if postgres.add_path -%}
|
||||
{%- if postgres.add_profile -%}
|
||||
postgresql-profile:
|
||||
file.managed:
|
||||
- name: /etc/profile.d/postgres.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue