RedHat: make client binaries available in $PATH

This commit is contained in:
Denys Havrysh
2016-09-26 13:57:55 +03:00
parent ea8c88c601
commit d5dcac95a7
5 changed files with 74 additions and 22 deletions

View File

@@ -12,13 +12,13 @@ include:
### Installation states
postgresql-installed:
postgresql-server:
pkg.installed:
- name: {{ postgres.pkg }}
- refresh: {{ postgres.use_upstream_repo }}
{% if postgres.use_upstream_repo %}
{%- if postgres.use_upstream_repo %}
- refresh: True
- require:
- pkgrepo: install-postgresql-repo
- pkgrepo: postgresql-repo
{%- endif %}
# make sure the data directory and contents have been initialized
@@ -31,7 +31,7 @@ postgresql-cluster-prepared:
- unless:
- {{ postgres.prepare_cluster.test }}
- require:
- pkg: postgresql-installed
- pkg: postgresql-server
postgresql-config-dir:
file.directory: