diff options
Diffstat (limited to 'modules/postgresql/manifests')
-rw-r--r-- | modules/postgresql/manifests/pg_hba.pp | 12 | ||||
-rw-r--r-- | modules/postgresql/manifests/server.pp | 6 |
2 files changed, 13 insertions, 5 deletions
diff --git a/modules/postgresql/manifests/pg_hba.pp b/modules/postgresql/manifests/pg_hba.pp new file mode 100644 index 00000000..1ad2fb37 --- /dev/null +++ b/modules/postgresql/manifests/pg_hba.pp @@ -0,0 +1,12 @@ +class 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": + content => template('postgresql/pg_hba.conf'), + } +} +# vim: sw=2 diff --git a/modules/postgresql/manifests/server.pp b/modules/postgresql/manifests/server.pp index 84be87ad..d2683e7d 100644 --- a/modules/postgresql/manifests/server.pp +++ b/modules/postgresql/manifests/server.pp @@ -35,13 +35,9 @@ class postgresql::server { content => template('postgresql/pam'), } - $db = list_exported_ressources('Postgresql::Db_and_user') - - $forum_lang = list_exported_ressources('Phpbb::Locale_db') + include postgresql::pg_hba postgresql::config { - "$pgsql_data/pg_hba.conf": - content => template('postgresql/pg_hba.conf'); "$pgsql_data/pg_ident.conf": content => template('postgresql/pg_ident.conf'); "$pgsql_data/postgresql.conf": |