Skip to content

Commit 501b0b6

Browse files
authored
Merge pull request #221 from noelmcloughlin/devpkg
Fix dev package os dependencies
2 parents 85fb4bf + e3ffa44 commit 501b0b6

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

postgres/defaults.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ postgres:
77
pkgs_extra: []
88
pkg_client: postgresql-client
99
pkg_dev: postgresql-devel
10+
pkg_dev_deps: []
1011
pkg_libpq_dev: libpq-dev
1112
pkg_libs: postgresql-libs
1213
pkg_python: python-psycopg2

postgres/dev.sls

+5-13
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,18 @@
11
{% from tpldir + "/map.jinja" import postgres with context %}
22
33
{% if grains.os not in ('Windows', 'MacOS',) %}
4+
{%- set pkgs = [postgres.pkg_dev, postgres.pkg_libpq_dev] + postgres.pkg_dev_deps %}
45
5-
{% if postgres.pkg_dev %}
6-
install-postgres-dev-package:
6+
{% if pkgs %}
7+
install-postgres-dev-packages:
78
pkg.installed:
8-
- name: {{ postgres.pkg_dev }}
9+
- pkgs: {{ pkgs }}
910
{% if postgres.fromrepo %}
1011
- fromrepo: {{ postgres.fromrepo }}
1112
{% endif %}
1213
{% endif %}
1314
14-
{% if postgres.pkg_libpq_dev %}
15-
install-postgres-libpq-dev:
16-
pkg.installed:
17-
- name: {{ postgres.pkg_libpq_dev }}
18-
{% if postgres.fromrepo %}
19-
- fromrepo: {{ postgres.fromrepo }}
20-
{% endif %}
21-
{% endif %}
22-
23-
# Alternatives system. Make devclient binaries available in $PATH
15+
# Alternatives system. Make devclient binaries available in $PATH
2416
{%- if 'bin_dir' in postgres and postgres.linux.altpriority %}
2517
{%- for bin in postgres.dev_bins %}
2618
{%- set path = salt['file.join'](postgres.bin_dir, bin) %}

postgres/osfamilymap.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ RedHat:
101101

102102
{% endif %}
103103
pkg_libpq_dev: libpqxx-devel
104+
pkg_dev_deps:
105+
- perl-Time-HiRes
106+
- libicu-devel
107+
- perl-IPC-Run
108+
- perl-Test-Simple
104109

105110
Suse:
106111
pkg_repo:

0 commit comments

Comments
 (0)