aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/puppet/site
diff options
context:
space:
mode:
authoralex <alex@pdp7.net>2023-06-18 12:47:04 +0200
committeralex <alex@pdp7.net>2023-06-18 12:47:45 +0200
commita85e03ef753199a0219a3314e0cff28fc2613a6a (patch)
treefb571547f638689bbdd951537200ea83d1038e88 /personal_infra/puppet/site
parent8226be106d31405c8a9506041d0b1dccaefa41d6 (diff)
Allow configuring hba, listen on all addresses
Diffstat (limited to 'personal_infra/puppet/site')
-rw-r--r--personal_infra/puppet/site/pg.h1.int.pdp7.net.pp10
1 files changed, 9 insertions, 1 deletions
diff --git a/personal_infra/puppet/site/pg.h1.int.pdp7.net.pp b/personal_infra/puppet/site/pg.h1.int.pdp7.net.pp
index b964548b..944c5c16 100644
--- a/personal_infra/puppet/site/pg.h1.int.pdp7.net.pp
+++ b/personal_infra/puppet/site/pg.h1.int.pdp7.net.pp
@@ -1,3 +1,11 @@
node 'pg.h1.int.pdp7.net' {
- class {'postgres':}
+ class {'postgres':
+ pg_hba_conf => @(EOT)
+ # TYPE DATABASE USER ADDRESS METHOD
+ # "local" is for Unix domain socket connections only
+ local all all peer
+ host k8s_test k8s_test k8s-test.h1.int.pdp7.net trust
+ | EOT
+ ,
+ }
}