This code in `puppetlabs/postgresql` isn't making ...
# voxpupuli
a
This code in
puppetlabs/postgresql
isn't making much sense to me https://github.com/puppetlabs/puppetlabs-postgresql/blob/6cabced246767e53309e5e141bdb91ad930c1133/manifests/server/pg_hba_rule.pp#L38-L48 The main problem is that
defined( 'postgresql::server' )
does not check if that class is part of the catalog; it checks whether that class is available to be included in the catalog, so it's basically checking whether the
postgresql
module itself is available. But, the only thing needed from
postgresql::server
in the defined type are a couple of parameter defaults, which you would obviously be setting yourself if you aren't using the server class.