diff options
author | Michael Scherer <misc@mageia.org> | 2011-03-22 17:27:09 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-03-22 17:27:09 +0000 |
commit | 7db79b19447c2954280fcdf36e3bc0e3561c9c39 (patch) | |
tree | 079ec5fc2b9a7949ab845d803a2c19f7f1b5fea3 /modules/postgresql | |
parent | 1efbb7c5845560bc766388c1b113fb7ead193d3f (diff) | |
download | puppet-7db79b19447c2954280fcdf36e3bc0e3561c9c39.tar puppet-7db79b19447c2954280fcdf36e3bc0e3561c9c39.tar.gz puppet-7db79b19447c2954280fcdf36e3bc0e3561c9c39.tar.bz2 puppet-7db79b19447c2954280fcdf36e3bc0e3561c9c39.tar.xz puppet-7db79b19447c2954280fcdf36e3bc0e3561c9c39.zip |
- do not hardcode the list of database in the file
Diffstat (limited to 'modules/postgresql')
-rw-r--r-- | modules/postgresql/manifests/init.pp | 1 | ||||
-rw-r--r-- | modules/postgresql/templates/pg_hba.conf | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp index a1f39b95..5ba79811 100644 --- a/modules/postgresql/manifests/init.pp +++ b/modules/postgresql/manifests/init.pp @@ -60,6 +60,7 @@ class postgresql { # TODO use augeas to manage this file once augeas 0.7.4 is installed # on our server, as this would allow use to autodeclare database in it without # much trouble + $db = list_exported_ressources('Postgresql::Database') file { 'pg_hba.conf': path => "$pgsql_data/pg_hba.conf", ensure => present, diff --git a/modules/postgresql/templates/pg_hba.conf b/modules/postgresql/templates/pg_hba.conf index 2128fc68..19b1bd05 100644 --- a/modules/postgresql/templates/pg_hba.conf +++ b/modules/postgresql/templates/pg_hba.conf @@ -84,7 +84,6 @@ # FIXME ip v6 is hardcoded, facter do not seems to support # fetch it -db = ['epoll','mirrors','transifex','bugs','sympa'] for i in db %> host <%= i %> <%= i %> 127.0.0.1/32 md5 |