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 | |
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.
-rw-r--r-- | modules/postgresql/manifests/pg_hba.pp | 4 | ||||
-rw-r--r-- | modules/postgresql/manifests/server.pp | 2 |
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": |