File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,20 @@ postgres:
6
6
pkg : postgresql
7
7
pkgs_extra : []
8
8
pkg_client : postgresql-client
9
- pkg_dev : postgresql-devel
10
9
pkg_libpq_dev : libpq-dev
11
10
pkg_libs : postgresql-libs
12
11
pkg_python : python-psycopg2
13
12
userhomes : /home
14
13
user : postgres
15
14
group : postgres
16
15
16
+ pkg_dev : postgresql-devel
17
+ pkg_dev_deps :
18
+ - perl-Time-HiRes
19
+ - libicu-devel
20
+ - perl-IPC-Run
21
+ - perl-Test-Simple
22
+
17
23
prepare_cluster :
18
24
command : initdb --pgdata=/var/lib/pgsql/data
19
25
test : test -f /var/lib/pgsql/data/PG_VERSION
Original file line number Diff line number Diff line change 3
3
{% if grains.os not in (' Windows' , ' MacOS' ,) % }
4
4
5
5
{% if postgres.pkg_dev % }
6
+
7
+ {% if grains.os_family == ' RedHat' and postgres.version| int >= 10 % }
8
+ install- postgres- dev- osdependencies:
9
+ pkg.installed:
10
+ - pkgs: {{ postgres.pkg_dev_deps }}
11
+ - require_in:
12
+ - pkg: install- postgres- dev- package
13
+ {% endif % }
14
+
6
15
install- postgres- dev- package:
7
16
pkg.installed:
8
17
- name: {{ postgres.pkg_dev }}
9
18
{% if postgres.fromrepo % }
10
19
- fromrepo: {{ postgres.fromrepo }}
11
20
{% endif % }
21
+
12
22
{% endif % }
13
23
14
24
{% if postgres.pkg_libpq_dev % }
You can’t perform that action at this time.
0 commit comments