mirror of
https://github.com/saltstack-formulas/postgres-formula.git
synced 2025-04-17 10:10:31 +00:00
replace pkg_contrib with pkgs_extra
This commit is contained in:
parent
4f3e1cb8db
commit
d11ba6d14a
3 changed files with 7 additions and 4 deletions
|
@ -8,6 +8,9 @@ postgres:
|
||||||
lookup:
|
lookup:
|
||||||
pkg: 'postgresql-9.3'
|
pkg: 'postgresql-9.3'
|
||||||
pkg_client: 'postgresql-client-9.3'
|
pkg_client: 'postgresql-client-9.3'
|
||||||
|
pkgs_extra:
|
||||||
|
- postgresql-contrib
|
||||||
|
- postgresql-plpython
|
||||||
pg_hba: '/etc/postgresql/9.3/main/pg_hba.conf'
|
pg_hba: '/etc/postgresql/9.3/main/pg_hba.conf'
|
||||||
|
|
||||||
users:
|
users:
|
||||||
|
|
|
@ -3,7 +3,7 @@ postgres:
|
||||||
pkg_dev: postgresql-devel
|
pkg_dev: postgresql-devel
|
||||||
pkg_libpq_dev: postgresql-libs
|
pkg_libpq_dev: postgresql-libs
|
||||||
pkg_client: postgresql-client
|
pkg_client: postgresql-client
|
||||||
pkg_contrib: postgresql-contrib
|
pkgs_extra:
|
||||||
python: python-psycopg2
|
python: python-psycopg2
|
||||||
service: postgresql
|
service: postgresql
|
||||||
conf_dir: /var/lib/pgsql/data
|
conf_dir: /var/lib/pgsql/data
|
||||||
|
|
|
@ -43,10 +43,10 @@ run-postgresql:
|
||||||
- require:
|
- require:
|
||||||
- pkg: install-postgresql
|
- pkg: install-postgresql
|
||||||
|
|
||||||
{% if postgres.pkg_contrib != False %}
|
{% if postgres.pkgs_extra %}
|
||||||
install-postgres-contrib:
|
install-postgres-extra:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
- name: {{ postgres.pkg_contrib }}
|
- pkgs: {{ postgres.pkgs_extra }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if postgres.postgresconf %}
|
{% if postgres.postgresconf %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue