File tree 3 files changed +11
-13
lines changed
3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ postgres:
7
7
pkgs_extra : []
8
8
pkg_client : postgresql-client
9
9
pkg_dev : postgresql-devel
10
+ pkg_dev_deps : []
10
11
pkg_libpq_dev : libpq-dev
11
12
pkg_libs : postgresql-libs
12
13
pkg_python : python-psycopg2
Original file line number Diff line number Diff line change 1
1
{% from tpldir + " /map.jinja" import postgres with context % }
2
2
3
3
{% if grains.os not in (' Windows' , ' MacOS' ,) % }
4
+ {%- set pkgs = [postgres.pkg_dev, postgres.pkg_libpq_dev] + postgres.pkg_dev_deps % }
4
5
5
- {% if postgres.pkg_dev % }
6
- install- postgres- dev- package :
6
+ {% if pkgs % }
7
+ install- postgres- dev- packages :
7
8
pkg.installed:
8
- - name : {{ postgres.pkg_dev }}
9
+ - pkgs : {{ pkgs }}
9
10
{% if postgres.fromrepo % }
10
11
- fromrepo: {{ postgres.fromrepo }}
11
12
{% endif % }
12
13
{% endif % }
13
14
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
24
16
{%- if ' bin_dir' in postgres and postgres.linux.altpriority % }
25
17
{%- for bin in postgres.dev_bins % }
26
18
{%- set path = salt[' file.join' ](postgres.bin_dir, bin ) % }
Original file line number Diff line number Diff line change @@ -101,6 +101,11 @@ RedHat:
101
101
102
102
{% endif %}
103
103
pkg_libpq_dev : libpqxx-devel
104
+ pkg_dev_deps :
105
+ - perl-Time-HiRes
106
+ - libicu-devel
107
+ - perl-IPC-Run
108
+ - perl-Test-Simple
104
109
105
110
Suse :
106
111
pkg_repo :
You can’t perform that action at this time.
0 commit comments