Skip to content

Commit 473b602

Browse files
fix(mongodb.rb): make use of local fqdn for puppet connections when listening to 0.0.0.0 or ::0 because localhost ist not part of any certificate if ssl is enabled
1 parent a4d6a65 commit 473b602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/provider/mongodb.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ def self.conn_string
8383
first_ip_in_list = bindip.split(',').first
8484
ip_real = case first_ip_in_list
8585
when '0.0.0.0'
86-
'127.0.0.1'
86+
Facter.value(:fqdn)
8787
when %r{\[?::0\]?}
88-
'::1'
88+
Facter.value(:fqdn)
8989
else
9090
first_ip_in_list
9191
end

0 commit comments

Comments
 (0)