auth method trust also wants addresses
authorPeter Palfrader <peter@palfrader.org>
Sun, 29 Sep 2019 14:38:41 +0000 (16:38 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 29 Sep 2019 14:38:41 +0000 (16:38 +0200)
modules/postgres/manifests/cluster/hba_entry.pp

index 40e24f5..6831374 100644 (file)
@@ -26,7 +26,7 @@ define postgres::cluster::hba_entry (
   Enum['md5', 'trust'] $method = 'md5',
   String $order = '50',
 ) {
-  $address_methods = ['md5']
+  $address_methods = ['md5', 'trust']
   if $method in $address_methods {
     if !$address {
       fail("Authentication method ${method} needs an address")