Skip to content

Commit bcac778

Browse files
author
lofic
committed
Link to the sysconfig file for the init script of the PGDG postgresql server package
1 parent 5d4a543 commit bcac778

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

manifests/server/config.pp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,20 @@
108108
ensure => present,
109109
replace => false,
110110
}
111+
112+
# The init script from the packages of the postgresql.org repository
113+
# sources an alternate sysconfig file.
114+
# I. e. /etc/sysconfig/pgsql/postgresql-9.3 for PostgreSQL 9.3
115+
# Link to the sysconfig file set by this puppet module
116+
file { "/etc/sysconfig/pgsql/postgresql-${version}":
117+
ensure => link,
118+
target => '/etc/sysconfig/pgsql/postgresql',
119+
require => File[ '/etc/sysconfig/pgsql/postgresql' ],
120+
}
121+
111122
}
112123

124+
113125
if ($manage_pg_ident_conf == true) {
114126
concat { $pg_ident_conf_path:
115127
owner => $user,

0 commit comments

Comments
 (0)