aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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":