Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from sermo/config_template
Browse files Browse the repository at this point in the history
Allow specification of postgresql.conf template
  • Loading branch information
KrisBuytaert committed Jan 26, 2014
2 parents 820d2cb + af93454 commit f82af7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
# Configuration of postgres instance
define postgres::config (
$listen = 'localhost',
$version = '9.0'
$version = '9.0',
$template = 'postgres/postgresql.conf.erb'
) {
file {"/var/lib/pgsql/${version}/data/postgresql.conf":
content => template('postgres/postgresql.conf.erb'),
content => template($template),
owner => 'postgres',
group => 'postgres',
notify => Service['postgresql'],
Expand Down

0 comments on commit f82af7d

Please sign in to comment.