mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-15 17:20:25 +00:00
Merge pull request #124 from heap/support-client-only
Support only including postgres.client
This commit is contained in:
commit
1e87f91e8b
3 changed files with 8 additions and 4 deletions
|
@ -9,6 +9,10 @@ install-postgresql-client:
|
|||
pkg.installed:
|
||||
- name: {{ postgres.pkg_client }}
|
||||
- refresh: {{ postgres.use_upstream_repo }}
|
||||
{% if postgres.use_upstream_repo %}
|
||||
- require:
|
||||
- pkgrepo: install-postgresql-repo
|
||||
{%- endif %}
|
||||
|
||||
{% if postgres.pkg_libpq_dev %}
|
||||
install-postgres-libpq-dev:
|
||||
|
|
|
@ -16,6 +16,10 @@ postgresql-installed:
|
|||
pkg.installed:
|
||||
- name: {{ postgres.pkg }}
|
||||
- refresh: {{ postgres.use_upstream_repo }}
|
||||
{% if postgres.use_upstream_repo %}
|
||||
- require:
|
||||
- pkgrepo: install-postgresql-repo
|
||||
{%- endif %}
|
||||
|
||||
# make sure the data directory and contents have been initialized
|
||||
postgresql-cluster-prepared:
|
||||
|
|
|
@ -9,8 +9,6 @@ install-postgresql-repo:
|
|||
- keyid: B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
|
||||
- keyserver: keyserver.ubuntu.com
|
||||
- file: {{ postgres.pkg_repo_file }}
|
||||
- require_in:
|
||||
- pkg: postgresql-installed
|
||||
|
||||
{%- elif grains['os_family'] == 'RedHat' -%}
|
||||
|
||||
|
@ -27,7 +25,5 @@ install-postgresql-repo:
|
|||
- gpgkey: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-PGDG
|
||||
- require:
|
||||
- file: install-postgresql-repo
|
||||
- require_in:
|
||||
- pkg: postgresql-installed
|
||||
|
||||
{%- endif %}
|
||||
|
|
Loading…
Add table
Reference in a new issue