diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-01-17 16:00:38 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-01-17 16:00:38 +0000 |
commit | ebe4bbc484513d496722d9d5fc60646cc3faa587 (patch) | |
tree | 89c8b1f9c622030a5f67b172d475fed2ec8ffb42 /modules/postgresql/manifests/pg_hba.pp | |
parent | a33f73c126bf7f0f4761a798461072577d69048a (diff) | |
download | puppet-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/manifests/pg_hba.pp')
-rw-r--r-- | modules/postgresql/manifests/pg_hba.pp | 4 |
1 files changed, 2 insertions, 2 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'), } } |