Skip to content

Commit e688274

Browse files
author
Morgan Haskel
committed
Merge pull request puppetlabs#515 from lofic/master
Link to the sysconfig file for the init script of the PGDG postgresql se...
2 parents fb71907 + bcac778 commit e688274

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
@@ -112,8 +112,20 @@
112112
ensure => present,
113113
replace => false,
114114
}
115+
116+
# The init script from the packages of the postgresql.org repository
117+
# sources an alternate sysconfig file.
118+
# I. e. /etc/sysconfig/pgsql/postgresql-9.3 for PostgreSQL 9.3
119+
# Link to the sysconfig file set by this puppet module
120+
file { "/etc/sysconfig/pgsql/postgresql-${version}":
121+
ensure => link,
122+
target => '/etc/sysconfig/pgsql/postgresql',
123+
require => File[ '/etc/sysconfig/pgsql/postgresql' ],
124+
}
125+
115126
}
116127

128+
117129
if ($manage_pg_ident_conf == true) {
118130
concat { $pg_ident_conf_path:
119131
owner => $user,

0 commit comments

Comments
 (0)