Open
Description
Describe the Bug
I am using the postgresql::server::grant
type to manage an external PostgreSQL server that is not managed with postgresql::server
. When I use grant_role
, I use the connect_settings
parameter, and it works. When I do the same with grant
, I get the following:
Mar 9 13:58:49 phoebe2 puppet-agent[1748481]: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Postgresql::Server::Grant[SELECT ON SCHEMA brs TO brs]:
Mar 9 13:58:49 phoebe2 puppet-agent[1748481]: parameter 'psql_db' expects a String value, got Undef
Mar 9 13:58:49 phoebe2 puppet-agent[1748481]: parameter 'psql_user' expects a String value, got Undef
Mar 9 13:58:49 phoebe2 puppet-agent[1748481]: parameter 'port' expects an Integer value, got Undef
Mar 9 13:58:49 phoebe2 puppet-agent[1748481]: parameter 'group' expects a String value, got Undef
Mar 9 13:58:49 phoebe2 puppet-agent[1748481]: parameter 'psql_path' expects a String value, got Undef (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 215) on node phoebe2.rac.berkeley.edu
Expected Behavior
I expect that by setting connect_settings, I won't need to set psql_db
, psql_user
, port
, group
, and psql_path
separately.
Steps to Reproduce
- Set up a
connect_settings
hash. - Create a task that uses the
connect_settings
without the other parameters.
Environment
- Version 8.0.0
- Platform Ubuntu 20.04.4, Postgresql 13.2