Your overall goal sounds a lot like how we set thi...
# puppet
a
Your overall goal sounds a lot like how we set this up in the ops dashboards module https://github.com/puppetlabs/puppet_operational_dashboards/blob/main/manifests/profile/foss_postgres_access.pp