Skip to content

Commit 38e762e

Browse files
committed
feat(db): require password for inventory_db
This is required to have FDW to localhost working, as the security mechanism prevents passwordless connections.
1 parent 25bb92c commit 38e762e

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

manifests/database.pp

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,30 @@
3333
auth_method => 'trust',
3434
}
3535

36+
postgresql::server::pg_hba_rule { 'host IPV4 inventory_db':
37+
type => 'host',
38+
database => 'inventory_db',
39+
user => 'all',
40+
address => '127.0.0.1/32',
41+
order => 2,
42+
auth_method => 'md5',
43+
}
44+
45+
postgresql::server::pg_hba_rule { 'host IPV6 inventory_db':
46+
type => 'host',
47+
database => 'inventory_db',
48+
user => 'all',
49+
address => '::1/128',
50+
order => 3,
51+
auth_method => 'md5',
52+
}
53+
3654
postgresql::server::pg_hba_rule { 'host IPV4':
3755
type => 'host',
3856
database => 'all',
3957
user => 'all',
4058
address => '127.0.0.1/32',
41-
order => 2,
59+
order => 4,
4260
auth_method => 'trust',
4361
}
4462

@@ -47,7 +65,7 @@
4765
database => 'all',
4866
user => 'all',
4967
address => '::1/128',
50-
order => 3,
68+
order => 5,
5169
auth_method => 'trust',
5270
}
5371

0 commit comments

Comments
 (0)