camptocamp/puppet-postgresql — comment on commit bac452ba477377aa99e26671ef86eb4a960fc35f
File:  line 0
By dbroeglin:

Hello,

This way of checking the password is quite heavy. At some point I tried to solve the issue by myself (didn't think of checking here...) and came up with this solution:

unless => "psql \"user='$name' password='$password' dbname=template1\" -c 'select 1' 2> /dev/null",

I'm not sure it works all the time but it worked fine enough for me.

Best regards,
Dominique