aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-01-17 16:00:38 +0000
committerNicolas Vigier <boklm@mageia.org>2013-01-17 16:00:38 +0000
commitebe4bbc484513d496722d9d5fc60646cc3faa587 (patch)
tree89c8b1f9c622030a5f67b172d475fed2ec8ffb42 /modules/postgresql
parenta33f73c126bf7f0f4761a798461072577d69048a (diff)
downloadpuppet-ebe4bbc484513d496722d9d5fc60646cc3faa587.tar
puppet-ebe4bbc484513d496722d9d5fc60646cc3faa587.tar.gz
puppet-ebe4bbc484513d496722d9d5fc60646cc3faa587.tar.bz2
puppet-ebe4bbc484513d496722d9d5fc60646cc3faa587.tar.xz
puppet-ebe4bbc484513d496722d9d5fc60646cc3faa587.zip
Change postgresql::pg_hba to a define
So that it's possible to override parameters.
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/pg_hba.pp4
-rw-r--r--modules/postgresql/manifests/server.pp2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/postgresql/manifests/pg_hba.pp b/modules/postgresql/manifests/pg_hba.pp
index 1ad2fb37..180d03ac 100644
--- a/modules/postgresql/manifests/pg_hba.pp
+++ b/modules/postgresql/manifests/pg_hba.pp
@@ -1,11 +1,11 @@
-class postgresql::pg_hba(
+define postgresql::pg_hba(
$conf_lines = []
) {
$db = list_exported_ressources('Postgresql::Db_and_user')
$forum_lang = list_exported_ressources('Phpbb::Locale_db')
- postgresql::config { "${postgresql::server::pgsql_data}/pg_hba.conf":
+ postgresql::config { $name:
content => template('postgresql/pg_hba.conf'),
}
}
diff --git a/modules/postgresql/manifests/server.pp b/modules/postgresql/manifests/server.pp
index d2683e7d..8089bb4c 100644
--- a/modules/postgresql/manifests/server.pp
+++ b/modules/postgresql/manifests/server.pp
@@ -35,7 +35,7 @@ class postgresql::server {
content => template('postgresql/pam'),
}
- include postgresql::pg_hba
+ postgresql::pg_hba { "${pgsql_data}/pg_hba.conf": }
postgresql::config {
"$pgsql_data/pg_ident.conf":