ok, I think I'm getting how it's trying to work if I define a connection to the remote resource in the manifest such as here
https://forge.puppet.com/modules/puppetlabs/postgresql/readme#manage-remote-users%2C-roles%2C-and-permissions I can define a set of users in hiera with postgresql:
serverroles - hash. and make sure connection_setting is included in that hash that matches the connection_setting name I defined in the manigest, it should work, but do I then need to include postgresql:
serverrole (not roles) in the manifest to trigger the user creation